From 2f2349235ac0702daad6418a4726c7cb05dded0a Mon Sep 17 00:00:00 2001 From: Stricted Date: Thu, 4 Jun 2015 15:38:53 +0200 Subject: [PATCH] remove unused stuff --- lib/api/page/IndexPage.class.php | 4 ++-- lib/system/DNS.class.php | 11 ----------- lib/system/RequestHandler.class.php | 2 +- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/lib/api/page/IndexPage.class.php b/lib/api/page/IndexPage.class.php index 6ab2ad2..40a2cfc 100644 --- a/lib/api/page/IndexPage.class.php +++ b/lib/api/page/IndexPage.class.php @@ -9,7 +9,7 @@ use dns\page\AbstractPage; */ class IndexPage extends AbstractPage { public function prepare () { - /* we have no index page */ - exit; + /* we have no index page */ + exit; } } \ No newline at end of file diff --git a/lib/system/DNS.class.php b/lib/system/DNS.class.php index cd7c8a4..31d428c 100644 --- a/lib/system/DNS.class.php +++ b/lib/system/DNS.class.php @@ -52,7 +52,6 @@ class DNS { spl_autoload_register(array('dns\system\DNS', 'autoload')); set_exception_handler(array('dns\system\DNS', 'handleException')); set_error_handler(array('dns\system\DNS', 'handleError'), E_ALL); - /*register_shutdown_function(array('dns\system\DNS', 'destruct'));*/ $this->initDB(); self::buildOptions(); @@ -62,16 +61,6 @@ class DNS { new RequestHandler(self::$module); } - /* - public static function destruct() { - $error = error_get_last(); - if (!empty($error)) { - self::handleException(new SystemException($error['message'], $error['line'])); - } - - } - */ - /** * get database */ diff --git a/lib/system/RequestHandler.class.php b/lib/system/RequestHandler.class.php index 8109afa..bf61611 100644 --- a/lib/system/RequestHandler.class.php +++ b/lib/system/RequestHandler.class.php @@ -10,7 +10,7 @@ class RequestHandler { /** * init RequestHandler */ - public function __construct ($module = '') { + public function __construct ($module = '') { $className = ""; $pages = glob(DNS_DIR.'/lib/'.(empty($module) ? '' : $module.'/').'page/*Page.class.php'); if (isset($_GET["page"]) && !empty($_GET["page"])) { -- 2.20.1