From 88f334b5d3f848cb1582113543e4d5db02bc7e28 Mon Sep 17 00:00:00 2001 From: ayin Date: Mon, 27 Aug 2007 20:53:16 +0000 Subject: [PATCH] Remove unused function. --- src/misc.C | 16 ---------------- src/rxvt.h | 1 - 2 files changed, 17 deletions(-) diff --git a/src/misc.C b/src/misc.C index a69070c2..3f586fd9 100644 --- a/src/misc.C +++ b/src/misc.C @@ -234,22 +234,6 @@ rxvt_exit_failure () THROW ((class rxvt_failure_exception)) throw (rxvt_failure_exception); } -/* - * check that the first characters of S1 match S2 - * - * No Match - * return: 0 - * Match - * return: strlen (S2) - */ -int -rxvt_Str_match (const char *s1, const char *s2) NOTHROW -{ - int n = strlen (s2); - - return ((strncmp (s1, s2, n) == 0) ? n : 0); -} - /* * remove leading/trailing space and strip-off leading/trailing quotes. * in place. diff --git a/src/rxvt.h b/src/rxvt.h index e0b095b9..8370d6f1 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -120,7 +120,6 @@ void rxvt_warn (const char *fmt,...) NOTHROW; void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; -int rxvt_Str_match (const char *s1, const char *s2) NOTHROW; char * rxvt_Str_trim (char *str) NOTHROW; int rxvt_Str_escaped (char *str) NOTHROW; char ** rxvt_splitcommastring (const char *cs) NOTHROW; -- 2.34.1