From 58452c4f5b4a9a9cee533877601b16da78c3d80f Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Tue, 17 Dec 2013 08:31:53 +0200 Subject: [PATCH] cleanup --- ipf/project.php | 9 ++------- ipf/utils.php | 9 --------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/ipf/project.php b/ipf/project.php index c75fb95..643e642 100644 --- a/ipf/project.php +++ b/ipf/project.php @@ -31,11 +31,6 @@ final class IPF_Project { } - private function appClassName($name) - { - return $name . '_App'; - } - public function appList() { foreach($this->apps as $appName => &$app) { @@ -52,8 +47,8 @@ final class IPF_Project if (!array_key_exists($name, $this->apps)) throw new IPF_Exception_Panic("Application \"$name\" not found"); if ($this->apps[$name] == null) { - $className = $this->appClassName($name); - $this->apps[$name] = new $className(); + $className = $name.'_App'; + $this->apps[$name] = new $className; } return $this->apps[$name]; } diff --git a/ipf/utils.php b/ipf/utils.php index b239d9a..e459bde 100644 --- a/ipf/utils.php +++ b/ipf/utils.php @@ -132,15 +132,6 @@ class IPF_Utils return null; } - static function appLabelByModel($model) - { - $app = self::appByModel($model); - if ($app) - return strtolower($app->getLabel()); - else - return ''; - } - public static function insertDirectory($path, $directory) { $parts = pathinfo($path); -- 2.49.0