remove unused function after refactoring

This commit is contained in:
Enno Rehling 2016-09-07 17:52:12 +02:00
parent 4115bff79b
commit af310d48d6
2 changed files with 0 additions and 15 deletions

View File

@ -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];

View File

@ -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);