From f700b8d9602670fb503f376867818ad2fe487fed Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Mon, 1 Jun 2020 15:09:53 +0700 Subject: [PATCH] Remove API to set skip offset when performing a search --- Frameworks/regexp/src/find.cc | 4 ---- Frameworks/regexp/src/find.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/Frameworks/regexp/src/find.cc b/Frameworks/regexp/src/find.cc index 44de2c14..35db7cac 100644 --- a/Frameworks/regexp/src/find.cc +++ b/Frameworks/regexp/src/find.cc @@ -41,8 +41,6 @@ namespace find protected: find_implementation_t () : skip_first(0), skip_last(0) { } virtual ~find_implementation_t () { } - virtual void set_skip_first (ssize_t offset) { skip_first = offset; } - virtual void set_skip_last (ssize_t offset) { skip_last = offset; } virtual std::pair match (char const* buf, ssize_t len, std::map* captures) = 0; ssize_t skip_first, skip_last; @@ -443,7 +441,5 @@ namespace find } std::pair find_t::match (char const* buf, ssize_t len, std::map* captures) { return pimpl->match(buf, len, captures); } - void find_t::set_skip_first (ssize_t offset) { pimpl->set_skip_first(offset); } - void find_t::set_skip_last (ssize_t offset) { pimpl->set_skip_last(offset); } } /* find */ diff --git a/Frameworks/regexp/src/find.h b/Frameworks/regexp/src/find.h index eca78ec3..f5bbdd62 100644 --- a/Frameworks/regexp/src/find.h +++ b/Frameworks/regexp/src/find.h @@ -34,8 +34,6 @@ namespace find find_t (std::string const& str, options_t options = none); std::pair match (char const* buf, ssize_t len, std::map* captures = NULL); - void set_skip_first (ssize_t offset); - void set_skip_last (ssize_t offset); private: std::shared_ptr pimpl;