From 6ede36f8e08ebd20500a244f3be4b3ecb5a568b1 Mon Sep 17 00:00:00 2001 From: Rachman Chavik Date: Sun, 13 May 2012 14:59:00 +0700 Subject: [PATCH] removing unneeded LOG_* constant checks --- lib/Cake/Log/CakeLog.php | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/lib/Cake/Log/CakeLog.php b/lib/Cake/Log/CakeLog.php index 7fd7511eb37..a2e4d76043e 100644 --- a/lib/Cake/Log/CakeLog.php +++ b/lib/Cake/Log/CakeLog.php @@ -19,39 +19,6 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ -/** - * Set up error level constants to be used within the framework if they are not defined within the - * system. - * - */ -if (!defined('LOG_EMERG')) { - define('LOG_EMERG', 0); -} -if (!defined('LOG_ALERT')) { - define('LOG_ALERT', 1); -} -if (!defined('LOG_CRIT')) { - define('LOG_CRIT', 2); -} -if (!defined('LOG_ERR')) { - define('LOG_ERR', 3); -} -if (!defined('LOG_ERROR')) { - define('LOG_ERROR', LOG_ERR); -} -if (!defined('LOG_WARNING')) { - define('LOG_WARNING', 4); -} -if (!defined('LOG_NOTICE')) { - define('LOG_NOTICE', 5); -} -if (!defined('LOG_INFO')) { - define('LOG_INFO', 6); -} -if (!defined('LOG_DEBUG')) { - define('LOG_DEBUG', 7); -} - App::uses('LogEngineCollection', 'Log'); /**