summaryrefslogtreecommitdiff
path: root/src/history.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/history.c')
-rw-r--r--src/history.c19
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)
{