Mark unused erroneous TemplateEngine::hasTemplateListeners() as deprecated
authorMatthias Schmidt <gravatronics@live.com>
Sat, 23 May 2015 15:14:26 +0000 (17:14 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 23 May 2015 15:14:26 +0000 (17:14 +0200)
Close #1843

wcfsetup/install/files/lib/system/template/TemplateEngine.class.php

index c11d9cfea836a6b7dd95bffcfe6b99084113cddb..1b4b0eddeaa9e853c6262c546ee4fbedc96ee32d 100755 (executable)
@@ -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;
        }