Author: grobmeier
Date: Fri Aug  7 05:30:13 2009
New Revision: 801887

URL: http://svn.apache.org/viewvc?rev=801887&view=rev
Log:
removed commented methods

Modified:
    incubator/log4php/trunk/src/main/php/Logger.php

Modified: incubator/log4php/trunk/src/main/php/Logger.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/Logger.php?rev=801887&r1=801886&r2=801887&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/Logger.php (original)
+++ incubator/log4php/trunk/src/main/php/Logger.php Fri Aug  7 05:30:13 2009
@@ -249,9 +249,6 @@
        }
        
        private function logLevel($message, $level, $caller = null) {
-//         if($this->repository->isDisabled($level)) {
-//                     return;
-//             }
                if($level->isGreaterOrEqual($this->getEffectiveLevel())) {
                        $this->forcedLog($this->fqcn, $caller, $level, 
$message);
                }
@@ -270,7 +267,6 @@
         * @see LoggerLoggingEvent                      
         */
        public function forcedLog($fqcn, $caller, $level, $message) {
-               // $fqcn = is_object($caller) ? get_class($caller) : 
(string)$caller;
                $this->callAppenders(new LoggerLoggingEvent($fqcn, $this, 
$level, $message));
        } 
 
@@ -360,14 +356,6 @@
                return LoggerHierarchy::singleton()->shutdown();           
        }
        
-//     /**
-//      * Return the the repository where this Category is attached.
-//      * @return LoggerHierarchy
-//      */
-//     public function getLoggerRepository() {
-//             return $this->repository;
-//     } 
-
        /**
         * Return the category name.
         * @return string
@@ -384,15 +372,6 @@
                return $this->parent;
        }          
                  
-//     /**
-//      * Return the root of the default category hierarchy.
-//      * @return LoggerRoot
-//      */
-//      // TODO: remove method? confusing design
-//     public function getRoot() {
-//             return Logger::getRootLogger();
-//     } 
-
        /**
         * get the Root Logger (Delegate to {...@link Logger})
         * @return LoggerRoot
@@ -457,9 +436,6 @@
         * @return boolean
         */
        public function isEnabledFor($level) {
-//             if($this->repository->isDisabled($level)) {
-//                     return false;
-//             }
                return 
(bool)($level->isGreaterOrEqual($this->getEffectiveLevel()));
        } 
 
@@ -521,16 +497,6 @@
        }
 
        /**
-        * Only the Hierarchy class can set the hierarchy of a category.
-        *
-        * @param LoggerHierarchy $repository
-        */
-        // TODO: remove method?
-//     public function setHierarchy($repository) {
-//             $this->repository = $repository;
-//     }
-
-       /**
         * Set the level of this Category.
         *
         * @param LoggerLevel $level a level string or a level constant 


Reply via email to