mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 22:43:58 +00:00
Sync OpenBSD patchset 533:
Zap unused functions, prompted by deraadt.
This commit is contained in:
17
mode-key.c
17
mode-key.c
@ -1,4 +1,4 @@
|
||||
/* $Id: mode-key.c,v 1.34 2009-10-15 01:52:47 tcunha Exp $ */
|
||||
/* $Id: mode-key.c,v 1.35 2009-11-13 16:58:24 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -370,21 +370,6 @@ mode_key_init_trees(void)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
mode_key_free_trees(void)
|
||||
{
|
||||
const struct mode_key_table *mtab;
|
||||
struct mode_key_binding *mbind;
|
||||
|
||||
for (mtab = mode_key_tables; mtab->name != NULL; mtab++) {
|
||||
while (!SPLAY_EMPTY(mtab->tree)) {
|
||||
mbind = SPLAY_ROOT(mtab->tree);
|
||||
SPLAY_REMOVE(mode_key_tree, mtab->tree, mbind);
|
||||
xfree(mbind);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
mode_key_init(struct mode_key_data *mdata, struct mode_key_tree *mtree)
|
||||
{
|
||||
|
Reference in New Issue
Block a user