From e6d2a291e8f987de9cc6f73e2c4b7cbbd12e7907 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 14 Nov 2021 23:42:34 +0000 Subject: Revert "Add regex_pcre compatibility to regex_pcre2". This reverts commit 3fa012b75b14abd69c7bc67c27ae50cb9ba4c343. --- src/modules/extra/m_regex_pcre2.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src') diff --git a/src/modules/extra/m_regex_pcre2.cpp b/src/modules/extra/m_regex_pcre2.cpp index c0acd627d..a8e9c535a 100644 --- a/src/modules/extra/m_regex_pcre2.cpp +++ b/src/modules/extra/m_regex_pcre2.cpp @@ -75,34 +75,15 @@ class PCRE2Pattern final } }; -class PCRECompatEngine final - : public Regex::Engine -{ -public: - PCRECompatEngine(Module* Creator, const std::string& Name) - : Regex::Engine(Creator, Name) - { - if (!ServerInstance->Config->ConfValue("pcre2")->getBool("compat")) - DisableAutoRegister(); - } - - Regex::PatternPtr Create(const std::string& pattern, uint8_t options) override - { - return std::make_shared(pattern, options); - } -}; - class ModuleRegexPCRE2 final : public Module { private: - PCRECompatEngine compatregex; Regex::SimpleEngine regex; public: ModuleRegexPCRE2() : Module(VF_VENDOR, "Provides the pcre2 regular expression engine which uses the PCRE2 library.") - , compatregex(this, "pcre") , regex(this, "pcre2") { } -- cgit v1.3.1-10-gc9f91