From 70c2ae4bea16a84e618d14a72a53602c401e75e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 18 Jan 2016 21:01:00 +0100 Subject: text-regex: remove unused struct member --- text-regex.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'text-regex.c') diff --git a/text-regex.c b/text-regex.c index dbaa5fc..c4134aa 100644 --- a/text-regex.c +++ b/text-regex.c @@ -4,7 +4,6 @@ #include "text-regex.h" struct Regex { - const char *string; regex_t regex; }; @@ -17,7 +16,6 @@ Regex *text_regex_new(void) { } int text_regex_compile(Regex *regex, const char *string, int cflags) { - regex->string = string; int r = regcomp(®ex->regex, string, cflags); if (r) regcomp(®ex->regex, "\0\0", 0); -- cgit v1.2.3