Remove unused code
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 29 Jul 2009 23:27:51 +0000 (17:27 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 29 Jul 2009 23:27:51 +0000 (17:27 -0600)
kronolith/lib/Kronolith.php

index 3500d8b..ec64b42 100644 (file)
@@ -74,16 +74,6 @@ class Kronolith
         Horde::addScriptFile('horde.js', 'horde', true);
         Horde::addScriptFile('dragdrop2.js', 'horde', true);
         Horde::addScriptFile('Growler.js', 'horde', true);
-
-        // ContextSensitive must be loaded first.
-        while (list($key, $val) = each($scripts)) {
-            if (($val[0] == 'ContextSensitive.js') &&
-                ($val[1] == 'kronolith')) {
-                Horde::addScriptFile($val[0], $val[1], $val[2]);
-                unset($scripts[$key]);
-                break;
-            }
-        }
         Horde::addScriptFile('kronolith.js', 'kronolith', true);
 
         // Add other scripts now
@@ -227,25 +217,6 @@ class Kronolith
     }
 
     /**
-     * Creates a URL for cached Kronolith data.
-     *
-     * @param string $type  The cache type.
-     * @param string $cid   The cache id.
-     *
-     * @return string  The URL to the cache page.
-     */
-    public static function getCacheURL($type, $cid)
-    {
-        $parts = array(
-            $GLOBALS['registry']->get('webroot'),
-            'cache.php',
-            $type,
-            $cid
-        );
-        return Horde::url(implode('/', $parts));
-    }
-
-    /**
      * Returns all the alarms active on a specific date.
      *
      * @param Horde_Date $date    The date to check for alarms.