Remove dead code in nL_parser.c

This commit is contained in:
Couriersud 2014-01-23 20:29:05 +00:00
parent 51646dab7a
commit 3ff8e23a53
2 changed files with 0 additions and 50 deletions

View File

@ -42,54 +42,6 @@ void ptokenizer::skipeol()
}
}
void ptokenizer::skipws()
{
while (unsigned char c = getc())
{
switch (c)
{
case ' ':
case 9:
case 10:
case 13:
break;
case '#':
skipeol(); // treat preprocessor defines as comments
break;
case '/':
c = getc();
if (c == '/')
{
skipeol();
}
else if (c == '*')
{
int f=0;
while (!eof() )
{
c = getc();
if (f == 0 && c == '*')
f=1;
else if (f == 1 && c== '/' )
break;
else
f=0;
}
}
break;
default:
ungetc();
return;
}
}
}
unsigned char ptokenizer::peekc()
{
unsigned char c = getc();
ungetc();
return c;
}
unsigned char ptokenizer::getc()
{

View File

@ -113,9 +113,7 @@ protected:
private:
void skipeol();
void skipws();
unsigned char peekc();
unsigned char getc();
void ungetc();
bool eof() { return *m_px == 0; }