From f75953fcce418773e3c552cefcee33034ab6dbdb Mon Sep 17 00:00:00 2001 From: "Bernhard R. Link" Date: Mon, 9 Jun 2008 10:59:25 +0200 Subject: remove unused history_list_items function --- src/history.c | 26 -------------------------- src/history.h | 1 - 2 files changed, 27 deletions(-) (limited to 'src') diff --git a/src/history.c b/src/history.c index 1da410e..4ec8b2e 100644 --- a/src/history.c +++ b/src/history.c @@ -113,32 +113,6 @@ history_next (void) return h ? h->line : NULL; } -char * -history_list_items (void) -{ - HIST_ENTRY **hlist; - struct sbuf *list; - char *tmp; - int i; - - list = sbuf_new (0); - hlist = history_list (); - - if (!hlist) return NULL; - - for (i = 0; hlist[i] != NULL; i++) - { - sbuf_concat (list, hlist[i]->line); - if (i < history_length - 1) - sbuf_concat (list, "\n"); - } - - tmp = sbuf_get (list); - free (list); - - return tmp; -} - int history_expand_line (char *string, char **output) { return history_expand (string, output); diff --git a/src/history.h b/src/history.h index 94ec147..b133df1 100644 --- a/src/history.h +++ b/src/history.h @@ -28,7 +28,6 @@ void history_reset (void); void history_add (char *item); char *history_next (void); char *history_previous (void); -char *history_list_items (void); int history_expand_line (char *string, char **output); #endif /* ! _RATPOISON_HISTORY_H */ -- cgit v1.2.3