Remove unneeded Horde_LoginTasks_Backend::registerShutdown()
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 6 Oct 2010 20:33:50 +0000 (14:33 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 7 Oct 2010 06:45:40 +0000 (00:45 -0600)
framework/Core/lib/Horde/Core/LoginTasks/Backend/Horde.php
framework/LoginTasks/lib/Horde/LoginTasks.php
framework/LoginTasks/lib/Horde/LoginTasks/Backend.php
framework/LoginTasks/test/Horde/LoginTasks/Stubs.php

index 0f43c38..4ef7502 100644 (file)
@@ -69,16 +69,6 @@ class Horde_Core_LoginTasks_Backend_Horde extends Horde_LoginTasks_Backend
     }
 
     /**
-     * Register the shutdown handler.
-     *
-     * @param array $shutdown  The shutdown function.
-     */
-    public function registerShutdown($shutdown)
-    {
-        register_shutdown_function($shutdown);
-    }
-
-    /**
      * Get the class names of the task classes that need to be performed.
      *
      * @return array  An array of class names.
index 071ed2a..3bdba0f 100644 (file)
@@ -77,7 +77,7 @@ class Horde_LoginTasks
             $this->_createTaskList();
         }
 
-        $this->_backend->registerShutdown(array($this, 'shutdown'));
+        register_shutdown_function(array($this, 'shutdown'));
     }
 
     /**
index 99a053b..bb2493c 100644 (file)
@@ -42,13 +42,6 @@ abstract class Horde_LoginTasks_Backend
     abstract public function storeTasklistInCache($tasklist);
 
     /**
-     * Register the shutdown handler.
-     *
-     * @param array $shutdown  The shutdown function.
-     */
-    abstract public function registerShutdown($shutdown);
-
-    /**
      * Get the class names of the task classes that need to be performed.
      *
      * @return array  An array of class names.
index b4f8d9f..081bdbf 100644 (file)
@@ -33,10 +33,6 @@ class Horde_LoginTasks_Stub_Backend extends Horde_LoginTasks_Backend
         $this->_tasklistCache = $tasklist;
     }
 
-    public function registerShutdown($shutdown)
-    {
-    }
-
     public function getTasks()
     {
         return $this->_tasklist;