forked from github/server
remove unused function after refactoring
This commit is contained in:
parent
4115bff79b
commit
af310d48d6
|
@ -85,19 +85,6 @@ void stree_add(struct syntaxtree *stree, const char *str, parser fun) {
|
|||
addtoken(&stree->root, str, var);
|
||||
}
|
||||
|
||||
void
|
||||
add_command(struct tnode **keys,
|
||||
const char *str, parser fun)
|
||||
{
|
||||
command *cmd = (command *)malloc(sizeof(command));
|
||||
variant var;
|
||||
|
||||
assert(str);
|
||||
cmd->fun = fun;
|
||||
var.v = cmd;
|
||||
addtoken(keys, str, var);
|
||||
}
|
||||
|
||||
static int do_command_i(const struct tnode *keys, struct unit *u, struct order *ord)
|
||||
{
|
||||
char token[128];
|
||||
|
|
|
@ -30,8 +30,6 @@ extern "C" {
|
|||
} syntaxtree;
|
||||
|
||||
typedef void(*parser) (const void *nodes, struct unit * u, struct order *);
|
||||
void add_command(struct tnode **troot,
|
||||
const char *str, parser fun);
|
||||
void do_command(const struct tnode *troot, struct unit *u, struct order *);
|
||||
|
||||
struct syntaxtree *stree_create(void);
|
||||
|
|
Loading…
Reference in New Issue