Author: grobmeier
Date: Thu Aug 27 22:22:10 2009
New Revision: 808666

URL: http://svn.apache.org/viewvc?rev=808666&view=rev
Log:
removed unnecessary comments

Modified:
    incubator/log4php/trunk/src/main/php/helpers/LoggerPatternParser.php

Modified: incubator/log4php/trunk/src/main/php/helpers/LoggerPatternParser.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/helpers/LoggerPatternParser.php?rev=808666&r1=808665&r2=808666&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/helpers/LoggerPatternParser.php 
(original)
+++ incubator/log4php/trunk/src/main/php/helpers/LoggerPatternParser.php Thu 
Aug 27 22:22:10 2009
@@ -149,23 +149,19 @@
 
                        switch($this->state) {
                                case self::LITERAL_STATE:
-                                       // 
LoggerLog::debug("LoggerPatternParser::parse() state is 'self::LITERAL_STATE'");
                                        // In literal state, the last char is 
always a literal.
                                        if($this->i == $this->patternLength) {
                                                $this->currentLiteral .= $c;
                                                continue;
                                        }
                                        if($c == self::ESCAPE_CHAR) {
-                                               // 
LoggerLog::debug("LoggerPatternParser::parse() char is an escape char");
                                                // peek at the next char.
                                                
switch($this->pattern{$this->i}) {
                                                        case self::ESCAPE_CHAR:
-                                                               // 
LoggerLog::debug("LoggerPatternParser::parse() next char is an escape char");
                                                                
$this->currentLiteral .= $c;
                                                                $this->i++; // 
move pointer
                                                                break;
                                                        case 'n':
-                                                               // 
LoggerLog::debug("LoggerPatternParser::parse() next char is 'n'");
                                                                
$this->currentLiteral .= PHP_EOL;
                                                                $this->i++; // 
move pointer
                                                                break;
@@ -182,7 +178,6 @@
                                        }
                                        break;
                                case self::CONVERTER_STATE:
-                                       // 
LoggerLog::debug("LoggerPatternParser::parse() state is 
'self::CONVERTER_STATE'");
                                                $this->currentLiteral .= $c;
                                                switch($c) {
                                                case '-':
@@ -201,7 +196,6 @@
                                                } // switch
                                        break;
                                case self::MIN_STATE:
-                                       // 
LoggerLog::debug("LoggerPatternParser::parse() state is 'self::MIN_STATE'");
                                        $this->currentLiteral .= $c;
                                        if(ord($c) >= ord('0') and ord($c) <= 
ord('9')) {
                                                $this->formattingInfo->min = 
($this->formattingInfo->min * 10) + (ord($c) - ord('0'));
@@ -212,7 +206,6 @@
                                        }
                                        break;
                                case self::DOT_STATE:
-                                       // 
LoggerLog::debug("LoggerPatternParser::parse() state is 'self::DOT_STATE'");
                                        $this->currentLiteral .= $c;
                                        if(ord($c) >= ord('0') and ord($c) <= 
ord('9')) {
                                                $this->formattingInfo->max = 
ord($c) - ord('0');
@@ -222,7 +215,6 @@
                                        }
                                        break;
                                case self::MAX_STATE:
-                                       // 
LoggerLog::debug("LoggerPatternParser::parse() state is 'self::MAX_STATE'");    
                      
                                        $this->currentLiteral .= $c;
                                        if(ord($c) >= ord('0') and ord($c) <= 
ord('9')) {
                                                $this->formattingInfo->max = 
($this->formattingInfo->max * 10) + (ord($c) - ord('0'));
@@ -235,7 +227,6 @@
                } // while
                if(strlen($this->currentLiteral) != 0) {
                        $this->addToList(new 
LoggerLiteralPatternConverter($this->currentLiteral));
-                       // LoggerLog::debug("LoggerPatternParser::parse() 
Parsed LITERAL converter: \"{$this->currentLiteral}\".");
                }
                return $this->head;
        }


Reply via email to