[gtksourceview] pcre2: remove nametable cache
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] pcre2: remove nametable cache
- Date: Thu, 1 Oct 2020 22:24:24 +0000 (UTC)
commit b04d7814914892c513a30a1748191190746dade6
Author: Christian Hergert <chergert redhat com>
Date: Thu Oct 1 15:24:06 2020 -0700
pcre2: remove nametable cache
We don't need these anymore now that we use pcre2 utility functions
directly for lookups.
gtksourceview/implregex.c | 15 ---------------
1 file changed, 15 deletions(-)
---
diff --git a/gtksourceview/implregex.c b/gtksourceview/implregex.c
index 77b4f2f7..dbe04a69 100644
--- a/gtksourceview/implregex.c
+++ b/gtksourceview/implregex.c
@@ -39,9 +39,6 @@ struct _ImplRegex
gsize match_flags;
pcre2_compile_context *context;
pcre2_code *code;
- PCRE2_SPTR name_table;
- int name_count;
- int name_entry_size;
guint has_jit : 1;
};
@@ -183,18 +180,6 @@ impl_regex_new (const char *pattern,
return NULL;
}
- pcre2_pattern_info (regex->code, PCRE2_INFO_NAMECOUNT, ®ex->name_count);
-
- if (regex->name_count > 0)
- {
- pcre2_pattern_info (regex->code,
- PCRE2_INFO_NAMEENTRYSIZE,
- ®ex->name_entry_size);
- pcre2_pattern_info (regex->code,
- PCRE2_INFO_NAMETABLE,
- ®ex->name_table);
- }
-
/* Now try to JIT the pattern for faster execution time */
regex->has_jit = pcre2_jit_compile (regex->code, PCRE2_JIT_COMPLETE) == 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]