From 236120d72404fa780fe53dbd829c85de1ae3c08a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 22 Jun 2021 16:44:37 +0200 Subject: [PATCH] Remove `SearchKeywordManager` (#4313) Since 8d04d7bd18a910393ebb2000f21babca260fde24, the action `upsert` does not exist anymore resulting in an exception when calling `SearchKeywordManager::add()`, illustrating that this class is unused in practice. --- com.woltlab.wcf/fileDelete.xml | 1 + .../search/SearchKeywordManager.class.php | 32 ------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 wcfsetup/install/files/lib/system/search/SearchKeywordManager.class.php diff --git a/com.woltlab.wcf/fileDelete.xml b/com.woltlab.wcf/fileDelete.xml index c294e8a1ca..0da45012fc 100644 --- a/com.woltlab.wcf/fileDelete.xml +++ b/com.woltlab.wcf/fileDelete.xml @@ -1864,6 +1864,7 @@ lib/system/request/IRoute.class.php lib/system/request/Route.class.php lib/system/request/StaticRoute.class.php + lib/system/search/SearchKeywordManager.class.php lib/system/sitemap/ISitemapProvider.class.php lib/system/sitemap/SitemapHandler.class.php lib/system/sitemap/UserAccountSitemapProvider.class.php diff --git a/wcfsetup/install/files/lib/system/search/SearchKeywordManager.class.php b/wcfsetup/install/files/lib/system/search/SearchKeywordManager.class.php deleted file mode 100644 index 01a3b501dc..0000000000 --- a/wcfsetup/install/files/lib/system/search/SearchKeywordManager.class.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @package WoltLabSuite\Core\System\Search - * @deprecated 5.2 - */ -class SearchKeywordManager extends SingletonFactory -{ - /** - * Adds the given keyword. - * - * @param string $keyword - */ - public function add($keyword) - { - (new SearchKeywordAction([], 'upsert', [ - 'data' => [ - 'keyword' => $keyword, - ], - ]))->executeAction(); - } -} -- 2.20.1