summaryrefslogtreecommitdiff
path: root/bin/ksh/history.c
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2018-01-15 14:58:06 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2018-01-15 14:58:06 +0000
commit1e1db38a33ecba9e2ad3c9f7308345525c08ebac (patch)
tree68b8e165d5cdb25668298063e037d6d8c8c3b309 /bin/ksh/history.c
parentebf81fbfc88061d716d7d3e6c5f53fc9c8180918 (diff)
Stop pretending we support building ksh without EDIT/HISTORY support
ok anton@
Diffstat (limited to 'bin/ksh/history.c')
-rw-r--r--bin/ksh/history.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c
index 3812e92f895..84ea5fdf263 100644
--- a/bin/ksh/history.c
+++ b/bin/ksh/history.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: history.c,v 1.78 2018/01/06 16:28:58 millert Exp $ */
+/* $OpenBSD: history.c,v 1.79 2018/01/15 14:58:05 jca Exp $ */
/*
* command history
@@ -25,8 +25,6 @@
#include "sh.h"
-#ifdef HISTORY
-
static void history_write(void);
static FILE *history_open(void);
static void history_load(Source *);
@@ -856,25 +854,3 @@ hist_finish(void)
{
history_close();
}
-
-#else /* HISTORY */
-
-/* No history to be compiled in: dummy routines to avoid lots more ifdefs */
-void
-init_histvec(void)
-{
-}
-void
-hist_init(Source *s)
-{
-}
-void
-hist_finish(void)
-{
-}
-void
-histsave(int lno, const char *cmd, int dowrite)
-{
- errorf("history not enabled");
-}
-#endif /* HISTORY */