summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
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);