summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/history.c26
-rw-r--r--src/history.h1
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 */