diff options
Diffstat (limited to 'usr.bin/rcs/rcsnum.c')
-rw-r--r-- | usr.bin/rcs/rcsnum.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/usr.bin/rcs/rcsnum.c b/usr.bin/rcs/rcsnum.c index dc44ca2a769..cd599e80cae 100644 --- a/usr.bin/rcs/rcsnum.c +++ b/usr.bin/rcs/rcsnum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsnum.c,v 1.12 2010/07/23 21:46:05 ray Exp $ */ +/* $OpenBSD: rcsnum.c,v 1.13 2011/05/20 19:21:10 nicm Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -351,23 +351,6 @@ rcsnum_inc(RCSNUM *num) } /* - * rcsnum_dec() - * - * Decreases the revision number specified in <num>, if doing so will not - * result in an ending value below 1. E.g. 4.2 will go to 4.1 but 4.1 will - * be returned as 4.1. - */ -RCSNUM * -rcsnum_dec(RCSNUM *num) -{ - /* XXX - Is it an error for the number to be 0? */ - if (num->rn_id[num->rn_len - 1] <= 1) - return (num); - num->rn_id[num->rn_len - 1]--; - return (num); -} - -/* * rcsnum_revtobr() * * Retrieve the branch number associated with the revision number <num>. |