From 73ba5e7f2d115f6fa33e7f851bcd8d73d15aa239 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 23 May 2015 17:14:26 +0200 Subject: [PATCH] Mark unused erroneous TemplateEngine::hasTemplateListeners() as deprecated Close #1843 --- .../files/lib/system/template/TemplateEngine.class.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php index c11d9cfea8..1b4b0eddea 100755 --- a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php @@ -713,17 +713,11 @@ class TemplateEngine extends SingletonFactory { } /** - * Returns true if requested template has assigned template listeners. + * Returns false. * - * @param string $templateName - * @param string $application - * @return boolean + * @deprecated */ public function hasTemplateListeners($templateName, $application = 'wcf') { - if (isset($this->templateListeners[$application]) && isset($this->templateListeners[$application][$templateName])) { - return true; - } - return false; } -- 2.20.1