diff --git a/src/Search/Captures/SearchManipulateCapture_MySQLDatabase.php b/src/Search/Captures/SearchManipulateCapture_MySQLDatabase.php deleted file mode 100644 index e88f56a..0000000 --- a/src/Search/Captures/SearchManipulateCapture_MySQLDatabase.php +++ /dev/null @@ -1,29 +0,0 @@ -addSearchTerm($text, $fields, $boost); - } - - /** - * @codeCoverageIgnore - * @deprecated 4.0.0 Use addFuzzySearchTerm() instead - */ - public function fuzzysearch($text, $fields = null, $boost = []) - { - Deprecation::notice('4.0.0', 'Use addFuzzySearchTerm() instead'); - return $this->addFuzzySearchTerm($text, $fields, $boost); - } - - /** - * @codeCoverageIgnore - * @deprecated 4.0.0 Use addClassFilter() instead - */ - public function inClass($class, $includeSubclasses = true) - { - Deprecation::notice('4.0.0', 'Use addClassFilter() instead'); - return $this->addClassFilter($class, $includeSubclasses); - } - - /** - * @codeCoverageIgnore - * @deprecated 4.0.0 Use addFilter() instead - */ - public function filter($field, $values) - { - Deprecation::notice('4.0.0', 'Use addFilter() instead'); - return $this->addFilter($field, $values); - } - - /** - * @codeCoverageIgnore - * @deprecated 4.0.0 Use addExclude() instead - */ - public function exclude($field, $values) - { - Deprecation::notice('4.0.0', 'Use addExclude() instead'); - return $this->addExclude($field, $values); - } - - /** - * @codeCoverageIgnore - * @deprecated 4.0.0 Use setStart() instead - */ - public function start($start) - { - Deprecation::notice('4.0.0', 'Use setStart() instead'); - return $this->setStart($start); - } - - /** - * @codeCoverageIgnore - * @deprecated 4.0.0 Use setLimit() instead - */ - public function limit($limit) - { - Deprecation::notice('4.0.0', 'Use setLimit() instead'); - return $this->setLimit($limit); - } - - /** - * @codeCoverageIgnore - * @deprecated 4.0.0 Use setPageSize() instead - */ - public function page($page) - { - Deprecation::notice('4.0.0', 'Use setPageSize() instead'); - return $this->setPageSize($page); - } - /** * @return SearchCriteriaInterface[] */ diff --git a/src/Search/Queries/SearchQuery_Range.php b/src/Search/Queries/SearchQuery_Range.php index 0b4f4f9..b73a386 100644 --- a/src/Search/Queries/SearchQuery_Range.php +++ b/src/Search/Queries/SearchQuery_Range.php @@ -3,7 +3,6 @@ namespace SilverStripe\FullTextSearch\Search\Queries; use SilverStripe\Core\Injector\Injectable; -use SilverStripe\Dev\Deprecation; /** * Create one of these and pass as one of the values in filter or exclude to filter or exclude by a (possibly @@ -38,24 +37,4 @@ class SearchQuery_Range { return $this->start !== null || $this->end !== null; } - - /** - * @deprecated 4.0.0 Use setStart() instead - * @codeCoverageIgnore - */ - public function start($start) - { - Deprecation::notice('4.0.0', 'Use setStart() instead'); - return $this->setStart($start); - } - - /** - * @deprecated 4.0.0 Use setEnd() instead - * @codeCoverageIgnore - */ - public function end($end) - { - Deprecation::notice('4.0.0', 'Use setEnd() instead'); - return $this->setEnd($end); - } }