summaryrefslogtreecommitdiffstats
path: root/usr.bin/vi/common/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/vi/common/util.c')
-rw-r--r--usr.bin/vi/common/util.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/usr.bin/vi/common/util.c b/usr.bin/vi/common/util.c
index ffb3a27f7d8..df24d58c85a 100644
--- a/usr.bin/vi/common/util.c
+++ b/usr.bin/vi/common/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.12 2015/12/07 20:39:19 mmcc Exp $ */
+/* $OpenBSD: util.c,v 1.13 2016/01/30 21:31:08 martijn Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -97,22 +97,6 @@ nonblank(SCR *sp, recno_t lno, size_t *cnop)
}
/*
- * tail --
- * Return tail of a path.
- *
- * PUBLIC: char *tail(char *);
- */
-char *
-tail(char *path)
-{
- char *p;
-
- if ((p = strrchr(path, '/')) == NULL)
- return (path);
- return (p + 1);
-}
-
-/*
* v_strdup --
* Strdup for wide character strings with an associated length.
*