diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-03-24 10:23:41 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-03-24 10:23:41 +0100 |
commit | 53b223551687397986d55bfbf34009663cec217a (patch) | |
tree | 522c6c9a30a18b30b76913e03605bbd3efbd1660 | |
parent | 092295bc4a87c6af145c9231f598d55e2d5d9852 (diff) | |
download | ratpoison-53b223551687397986d55bfbf34009663cec217a.zip |
Kill history_resize, unused.
-rw-r--r-- | src/history.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/history.c b/src/history.c index 183a427..8ba2c53 100644 --- a/src/history.c +++ b/src/history.c @@ -273,25 +273,6 @@ history_reset (void) histories[id].current = &histories[id].head; } -void -history_resize (int size) -{ - struct history_item *i; - struct history *h; - int id; - - for (id = hist_NONE ; id < hist_COUNT ; id++ ) { - h = histories + id; - while (h->count >= (size_t)size) { - list_first (i, &h->head, node); - list_del (&i->node); - free (i->line); - free (i); - h->count--; - } - } -} - const char * history_previous (int history_id) { |