summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-01-04 13:45:25 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-01-04 13:45:25 +0000
commit5b14fcda3b588c91d3e2e79917b586cc68d5d86f (patch)
treee8d6d2f2e08d2b019db6bfeb8949a961ee9d2798 /usr.bin
parentd50a6468d6efb4a21cd1fed938134eece63d03d3 (diff)
remove unused function
from tobias@ ok xsa@ tobias@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/rcsutil.c12
-rw-r--r--usr.bin/rcs/rcsutil.h3
2 files changed, 2 insertions, 13 deletions
diff --git a/usr.bin/rcs/rcsutil.c b/usr.bin/rcs/rcsutil.c
index 9e3177773cb..6f67c362d70 100644
--- a/usr.bin/rcs/rcsutil.c
+++ b/usr.bin/rcs/rcsutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsutil.c,v 1.31 2007/07/19 06:37:58 ray Exp $ */
+/* $OpenBSD: rcsutil.c,v 1.32 2008/01/04 13:45:24 chl Exp $ */
/*
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -275,16 +275,6 @@ rcs_choosefile(const char *filename, char *out, size_t len)
}
/*
- * Allocate an RCSNUM and store in <rev>.
- */
-void
-rcs_set_rev(const char *str, RCSNUM **rev)
-{
- if (str == NULL || (*rev = rcsnum_parse(str)) == NULL)
- errx(1, "bad revision number `%s'", str);
-}
-
-/*
* Set <str> to <new_str>. Print warning if <str> is redefined.
*/
void
diff --git a/usr.bin/rcs/rcsutil.h b/usr.bin/rcs/rcsutil.h
index df36d7c7ccd..62fe09fba7f 100644
--- a/usr.bin/rcs/rcsutil.h
+++ b/usr.bin/rcs/rcsutil.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsutil.h,v 1.12 2007/02/22 19:11:13 otto Exp $ */
+/* $OpenBSD: rcsutil.h,v 1.13 2008/01/04 13:45:24 chl Exp $ */
/*
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
* All rights reserved.
@@ -57,7 +57,6 @@ RCSNUM *rcs_getrevnum(const char *, RCSFILE *);
char *rcs_prompt(const char *);
u_int rcs_rev_select(RCSFILE *, const char *);
int rcs_set_description(RCSFILE *, const char *);
-void rcs_set_rev(const char *, RCSNUM **);
void rcs_setrevstr(char **, char *);
void rcs_setrevstr2(char **, char **, char *);
BUF *rcs_patchfile(u_char *, size_t, u_char *, size_t,