X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcstrutil.c;h=3251c2b0a4d47c43255ca71746e17cf899ffedb4;hp=914adc98f58659a7cc739afed2a19dbec508827e;hb=c8fd78a59002c54dbc331a26839d042055e89d65;hpb=96ae4adfa8757be98b0587941e26d0733e1fb22e diff --git a/lib/silcutil/silcstrutil.c b/lib/silcutil/silcstrutil.c index 914adc98..3251c2b0 100644 --- a/lib/silcutil/silcstrutil.c +++ b/lib/silcutil/silcstrutil.c @@ -249,23 +249,6 @@ char *silc_string_regex_combine(const char *string1, const char *string2) return tmp; } -/* Matches the two strings and returns TRUE if the strings match. */ - -int silc_string_regex_match(const char *regex, const char *string) -{ - SilcRegexStruct preg; - SilcBool ret; - - if (!silc_regex_compile(&preg, regex, 0)) - return FALSE; - - ret = silc_regex_match(&preg, string, 0, NULL, 0); - - silc_regex_free(&preg); - - return ret; -} - /* Do regex match to the two strings `string1' and `string2'. If the `string2' matches the `string1' this returns TRUE. */