From 6e4f66555da833893c897072fd4ad9f3e1800636 Mon Sep 17 00:00:00 2001 From: dho Date: Fri, 11 May 2007 12:13:00 +0000 Subject: [PATCH] Removing unused function git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5039 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/cake_script.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/cake/console/libs/cake_script.php b/cake/console/libs/cake_script.php index f28b3fa75..cc1308c34 100644 --- a/cake/console/libs/cake_script.php +++ b/cake/console/libs/cake_script.php @@ -325,21 +325,6 @@ class CakeScript extends Object { } return true; } - - function __addAdminRoute($name){ - $file = file_get_contents(CONFIGS.'core.php'); - if (preg_match('%([/\\t\\x20]*define\\(\'CAKE_ADMIN\',[\\t\\x20\'a-z]*\\);)%', $file, $match)) { - $result = str_replace($match[0], 'define(\'CAKE_ADMIN\', \''.$name.'\');', $file); - - if(file_put_contents(CONFIGS.'core.php', $result)){ - return true; - } else { - return false; - } - } else { - return false; - } - } } ?> \ No newline at end of file