summaryrefslogtreecommitdiff
path: root/src/irc_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc_string.c')
-rw-r--r--src/irc_string.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/irc_string.c b/src/irc_string.c
index f711c9a..a25aa86 100644
--- a/src/irc_string.c
+++ b/src/irc_string.c
@@ -23,10 +23,6 @@
*/
#include "config.h"
-#ifdef HAVE_LIBPCRE
-#include <pcre.h>
-#endif
-
#include "stdinc.h"
#include "irc_string.h"
@@ -239,24 +235,3 @@ strlcpy(char *dst, const char *src, size_t siz)
return s - src - 1; /* count does not include NUL */
}
#endif
-
-#ifdef HAVE_LIBPCRE
-void *
-ircd_pcre_compile(const char *pattern, const char **errptr)
-{
- int erroroffset = 0;
- int options = PCRE_EXTRA;
-
- assert(pattern);
-
- return pcre_compile(pattern, options, errptr, &erroroffset, NULL);
-}
-
-int
-ircd_pcre_exec(const void *code, const char *subject)
-{
- assert(code && subject);
-
- return pcre_exec(code, NULL, subject, strlen(subject), 0, 0, NULL, 0) < 0;
-}
-#endif