Remove unused function.
authorayin <ayin>
Mon, 27 Aug 2007 20:53:16 +0000 (20:53 +0000)
committerayin <ayin>
Mon, 27 Aug 2007 20:53:16 +0000 (20:53 +0000)
src/misc.C
src/rxvt.h

index a69070c2e7a97c383e06c8fd6371d6b0c1f7d688..3f586fd942742711a33ee3a0e3e6cd18c7021099 100644 (file)
@@ -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.
index e0b095b9fb64b9c19bc38af1e1e5a09c5f96aad9..8370d6f18d77c144db6d1f6e62eee1c8240a6941 100644 (file)
@@ -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;