From: Tomas Mlcoch Date: Mon, 2 Apr 2012 07:43:55 +0000 (+0200) Subject: Remove unused regexp X-Git-Tag: upstream/0.2.1~460 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8797883f522a993d4e933f0c6c7b3701f5121b0c;p=services%2Fcreaterepo_c.git Remove unused regexp --- diff --git a/src/createrepo_c.c b/src/createrepo_c.c index a4bd791..9ba685e 100644 --- a/src/createrepo_c.c +++ b/src/createrepo_c.c @@ -22,8 +22,6 @@ #define G_LOG_DOMAIN ((gchar*) 0) -GRegex *location_subs_re; // Evil global variable - struct UserData { CW_FILE *pri_f; @@ -382,13 +380,6 @@ int main(int argc, char **argv) { } - // Compile global regexp for matching location tag in xml chunks - - GRegexCompileFlags re_compile_f = G_REGEX_DOTALL | G_REGEX_OPTIMIZE; - GRegexMatchFlags re_match_f = 0; - location_subs_re = g_regex_new("]*>", re_compile_f, re_match_f, NULL); - - // Create and open new compressed files CW_FILE *pri_cw_file; @@ -696,8 +687,6 @@ int main(int argc, char **argv) { g_debug("Memory cleanup"); - g_regex_unref(location_subs_re); - if (old_metadata) { destroy_metadata_hashtable(old_metadata); }