Delete `TemplateListenerCacheBuilder` (#4297)
authorMatthias Schmidt <gravatronics@live.com>
Wed, 16 Jun 2021 12:20:56 +0000 (14:20 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Jun 2021 12:20:56 +0000 (14:20 +0200)
com.woltlab.wcf/fileDelete.xml
wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php [deleted file]

index 62c5ad925083d1bd959911876cdeeb698624ccda..8e68069e70e202382f643ce8dde476dfa3504db5 100644 (file)
                <file>lib/system/cache/builder/PageMenuCacheBuilder.class.php</file>
                <file>lib/system/cache/builder/SitemapCacheBuilder.class.php</file>
                <file>lib/system/cache/builder/TemplateCacheBuilder.class.php</file>
+               <file>lib/system/cache/builder/TemplateListenerCacheBuilder.class.php</file>
                <file>lib/system/cache/builder/VersionCacheBuilder.class.php</file>
                <file>lib/system/cache/source/ApcCacheSource.class.php</file>
                <file>lib/system/cache/source/MemcacheAdapter.class.php</file>
diff --git a/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php
deleted file mode 100644 (file)
index af4fa21..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-namespace wcf\system\cache\builder;
-
-use wcf\data\template\listener\TemplateListenerList;
-
-/**
- * Caches template listener information.
- *
- * @author  Alexander Ebert
- * @copyright   2001-2019 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package WoltLabSuite\Core\System\Cache\Builder
- * @deprecated  2.1
- */
-class TemplateListenerCacheBuilder extends AbstractCacheBuilder
-{
-    /**
-     * @inheritDoc
-     */
-    public function rebuild(array $parameters)
-    {
-        // get templates for current package id
-        $templateListenerList = new TemplateListenerList();
-        $templateListenerList->getConditionBuilder()->add(
-            "template_listener.environment = ?",
-            [$parameters['environment']]
-        );
-        $templateListenerList->sqlOrderBy = "template_listener.listenerID ASC";
-        $templateListenerList->readObjects();
-
-        $data = [];
-        foreach ($templateListenerList->getObjects() as $templateListener) {
-            $data[$templateListener->templateName] = [];
-        }
-
-        return $data;
-    }
-}