From 044a7abd8a9ba2e63d80438609b5a36cb6c866d6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 17 Mar 2023 11:45:35 +0000 Subject: [Minor] Add safe-guard for a number of regular expressions to be cached --- src/libutil/regexp.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/libutil/regexp.h') diff --git a/src/libutil/regexp.h b/src/libutil/regexp.h index 239df03b4..94cc3d28e 100644 --- a/src/libutil/regexp.h +++ b/src/libutil/regexp.h @@ -209,17 +209,6 @@ rspamd_regexp_t *rspamd_regexp_cache_query (struct rspamd_regexp_cache *cache, const gchar *pattern, const gchar *flags); -/** - * Insert item to the cache using custom pattern and flags - * @param cache - * @param pattern - * @param flags - * @param re - */ -void rspamd_regexp_cache_insert (struct rspamd_regexp_cache *cache, - const gchar *pattern, - const gchar *flags, rspamd_regexp_t *re); - /** * Create or get cached regexp from the specified cache * @param cache regexp cache. if NULL, the superglobal cache is used (*not* thread-safe) -- cgit v1.2.3