Ignore:
Timestamp:
Mar 12, 2010, 7:28:25 AM (15 years ago)
Author:
[email protected]
Message:

2010-03-12 Peter Varga <[email protected]>

Reviewed by David Levin.

Two functions tryConsumeCharacter() and tryConsumeCharacterClass() are
removed from yarr/RegexInterpreter.cpp because they are never called.

  • yarr/RegexInterpreter.cpp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/yarr/RegexInterpreter.cpp

    r50143 r55900  
    281281    }
    282282
    283     bool tryConsumeCharacter(int testChar)
    284     {
    285         if (input.atEnd())
    286             return false;
    287 
    288         int ch = input.read();
    289 
    290         if (pattern->m_ignoreCase ? ((Unicode::toLower(testChar) == ch) || (Unicode::toUpper(testChar) == ch)) : (testChar == ch)) {
    291             input.next();
    292             return true;
    293         }
    294         return false;
    295     }
    296 
    297283    bool checkCharacter(int testChar, int inputPosition)
    298284    {
     
    304290        int ch = input.readChecked(inputPosition);
    305291        return (loChar == ch) || (hiChar == ch);
    306     }
    307 
    308     bool tryConsumeCharacterClass(CharacterClass* characterClass, bool invert)
    309     {
    310         if (input.atEnd())
    311             return false;
    312 
    313         bool match = testCharacterClass(characterClass, input.read());
    314 
    315         if (invert)
    316             match = !match;
    317 
    318         if (match) {
    319             input.next();
    320             return true;
    321         }
    322         return false;
    323292    }
    324293
Note: See TracChangeset for help on using the changeset viewer.