diff options
author | Bernhard R. Link <brlink@debian.org> | 2008-06-09 10:59:25 +0200 |
---|---|---|
committer | Bernhard R. Link <brlink@debian.org> | 2008-06-22 16:39:09 +0200 |
commit | f75953fcce418773e3c552cefcee33034ab6dbdb (patch) | |
tree | 6cac207fbd6248ef9dfc3ee7551f5f608ba93697 | |
parent | 4e08030acf10a54af36e92b14624257fbf0835a4 (diff) | |
download | ratpoison-f75953fcce418773e3c552cefcee33034ab6dbdb.zip |
remove unused history_list_items function
-rw-r--r-- | src/history.c | 26 | ||||
-rw-r--r-- | src/history.h | 1 |
2 files changed, 0 insertions, 27 deletions
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 */ |