Browse Source

Removed deprecated methods from Log

ADmad 12 years ago
parent
commit
186bd36485
2 changed files with 0 additions and 63 deletions
  1. 0 36
      Cake/Log/Log.php
  2. 0 27
      Cake/Test/TestCase/Log/LogTest.php

+ 0 - 36
Cake/Log/Log.php

@@ -266,42 +266,6 @@ class Log {
 	}
 
 /**
- * Checks whether $streamName is enabled
- *
- * @param string $streamName to check
- * @return bool
- * @throws Cake\Error\Exception
- * @deprecated This method will be removed in 3.0 stable.
- */
-	public static function enabled($streamName) {
-		throw new Error\Exception(__d('cake_dev', 'Log::enabled() is deprecated. Use Log::configured() instead.'));
-	}
-
-/**
- * Enable stream.
- *
- * @param string $streamName to enable
- * @return void
- * @throws Cake\Error\Exception
- * @deprecated This method will be removed in 3.0 stable.
- */
-	public static function enable($streamName) {
-		throw new Error\Exception(__d('cake_dev', 'Log::enable() is deprecated. Use Log::config() instead.'));
-	}
-
-/**
- * Disable stream.
- *
- * @param string $streamName to disable
- * @return void
- * @throws Cake\Error\Exception
- * @deprecated This method will be removed in 3.0 stable.
- */
-	public static function disable($streamName) {
-		throw new Error\Exception(__d('cake_dev', 'Log::disable() is deprecated. Use Log::drop() instead.'));
-	}
-
-/**
  * Get a logging engine.
  *
  * @param string $name Key name of a configured adapter to get.

+ 0 - 27
Cake/Test/TestCase/Log/LogTest.php

@@ -257,33 +257,6 @@ class LogTest extends TestCase {
 		}
 	}
 
-/**
- * test enable() throws exceptions
- *
- * @expectedException Cake\Error\Exception
- */
-	public function testStreamEnable() {
-		Log::enable('debug');
-	}
-
-/**
- * test enabled() throws exceptions
- *
- * @expectedException Cake\Error\Exception
- */
-	public function testStreamEnabled() {
-		Log::enabled('debug');
-	}
-
-/**
- * test disable() throws exceptions
- *
- * @expectedException Cake\Error\Exception
- */
-	public function testStreamDisable() {
-		Log::disable('debug');
-	}
-
 	protected function _resetLogConfig() {
 		Log::config('debug', array(
 			'engine' => 'File',