Commit a5d47f6c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Retire VRT_re_test()



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3393 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e04c135b
......@@ -84,25 +84,6 @@ VRT_re_match(const char *s, void *re)
return (0);
}
int
VRT_re_test(struct vsb *sb, const char *re, int sub)
{
int i;
regex_t t;
char buf[BUFSIZ];
memset(&t, 0, sizeof t);
i = regcomp(&t, re, REG_EXTENDED | (sub ? 0 : REG_NOSUB));
if (i == 0) {
regfree(&t);
return (0);
}
(void)regerror(i, &t, buf, sizeof buf);
vsb_printf(sb, "Regexp compilation error:\n\n%s\n\n", buf);
regfree(&t);
return (1);
}
const char *
VRT_regsub(const struct sess *sp, int all, const char *str, void *re,
const char *sub)
......
......@@ -136,7 +136,6 @@ void VRT_acl_log(const struct sess *, const char *msg);
void VRT_re_init(void **, const char *, int sub);
void VRT_re_fini(void *);
int VRT_re_match(const char *, void *re);
int VRT_re_test(struct vsb *, const char *, int sub);
const char *VRT_regsub(const struct sess *sp, int all, const char *,
void *, const char *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment