summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-02-13 16:26:36 +0100
committerLemonBoy <thatlemon@gmail.com>2016-06-05 16:24:55 +0200
commit0f9d2b35700db69c66c5878b5562852565753dd2 (patch)
tree40bab2b107fb773e70673484e887b4bd147a6fb4 /src/core
parent7a3c6fe86ca55b4ef69b11443b87359b333bc20b (diff)
downloadirssi-0f9d2b35700db69c66c5878b5562852565753dd2.zip
Remove unused regexp_match
Diffstat (limited to 'src/core')
-rw-r--r--src/core/misc.c18
-rw-r--r--src/core/misc.h3
2 files changed, 0 insertions, 21 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index 70d09e55..48a49fa3 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -375,24 +375,6 @@ char *stristr_full(const char *data, const char *key)
return strstr_full_case(data, key, TRUE);
}
-int regexp_match(const char *str, const char *regexp)
-{
-#ifdef HAVE_REGEX_H
- regex_t preg;
- int ret;
-
- if (regcomp(&preg, regexp, REG_EXTENDED|REG_ICASE|REG_NOSUB) != 0)
- return 0;
-
- ret = regexec(&preg, str, 0, NULL, 0);
- regfree(&preg);
-
- return ret == 0;
-#else
- return FALSE;
-#endif
-}
-
/* convert ~/ to $HOME */
char *convert_home(const char *path)
{
diff --git a/src/core/misc.h b/src/core/misc.h
index f8f1786f..df17998f 100644
--- a/src/core/misc.h
+++ b/src/core/misc.h
@@ -36,9 +36,6 @@ char *gslist_to_string(GSList *list, const char *delimiter);
items while using this list, use g_slist_free() after you're done with it */
GSList *hashtable_get_keys(GHashTable *hash);
-/* easy way to check if regexp matches */
-int regexp_match(const char *str, const char *regexp);
-
/* convert ~/ to $HOME */
char *convert_home(const char *path);