diff --git a/includes/class-wc-logger.php b/includes/class-wc-logger.php index fd4e957d5f7..874d87ee1e9 100644 --- a/includes/class-wc-logger.php +++ b/includes/class-wc-logger.php @@ -225,19 +225,4 @@ class WC_Logger { $handler = new WC_Log_Handler_File(); return $handler->clear( $handle ); } - - /** - * Remove/delete the chosen file. - * - * @deprecated 2.7.0 - * - * @param string $handle - * - * @return bool - */ - public function remove( $handle ) { - wc_deprecated_function( 'WC_Logger::remove', '2.7', 'WC_Log_Handler_File::remove' ); - $handler = new WC_Log_Handler_File(); - return $handler->remove( $handle ); - } } diff --git a/tests/unit-tests/log/logger.php b/tests/unit-tests/log/logger.php index c42a6e8d726..8e8508e1f65 100644 --- a/tests/unit-tests/log/logger.php +++ b/tests/unit-tests/log/logger.php @@ -46,20 +46,6 @@ class WC_Tests_Logger extends WC_Unit_Test_Case { $this->setExpectedDeprecated( 'WC_Logger::clear' ); } - /** - * Test remove(). - * - * @since 2.7 - */ - public function test_remove() { - $file = wc_get_log_file_path( 'unit-tests' ); - touch( $file ); - $log = new WC_Logger(); - $log->remove( 'unit-tests' ); - $this->assertFileNotExists( $file ); - $this->setExpectedDeprecated( 'WC_Logger::remove' ); - } - /** * Test log() complains for bad levels. *