summaryrefslogtreecommitdiff
path: root/bin/ksh/history.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-11 18:53:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-11 18:53:52 +0000
commit3f4357f701bd93523718fad49f37ca46a1bf7b7c (patch)
treed5bb381a2c97d21f3a239000de6dadce20e8ab62 /bin/ksh/history.c
parentd50c1064a55a09bd16da6a333beabca9f69f31b5 (diff)
remove unused variables and functions
Diffstat (limited to 'bin/ksh/history.c')
-rw-r--r--bin/ksh/history.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c
index 339a4d95de0..9a90b5deb00 100644
--- a/bin/ksh/history.c
+++ b/bin/ksh/history.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: history.c,v 1.31 2005/07/31 16:12:52 espie Exp $ */
+/* $OpenBSD: history.c,v 1.32 2005/12/11 18:53:51 deraadt Exp $ */
/*
* command history
@@ -43,7 +43,6 @@ static char **hist_get_oldest(void);
static void histbackup(void);
static char **current; /* current position in history[] */
-static int curpos; /* current index in history[] */
static char *hname; /* current name of history file */
static int hstarted; /* set after hist_init() called */
static Source *hist_source;
@@ -435,23 +434,15 @@ histpos(void)
}
int
-histN(void)
-{
- return curpos;
-}
-
-int
histnum(int n)
{
int last = histptr - history;
if (n < 0 || n >= last) {
current = histptr;
- curpos = last;
return last;
} else {
current = &history[n];
- curpos = n;
return n;
}
}