Commit 0718e45c by John Kessenich

Merge pull request #50 from google/remove-unused-code

Remove unused members from TPpContext
parents d618070a 1ee1f88b
...@@ -551,8 +551,7 @@ int TPpContext::CPPif(TPpToken* ppToken) ...@@ -551,8 +551,7 @@ int TPpContext::CPPif(TPpToken* ppToken)
{ {
int token = scanToken(ppToken); int token = scanToken(ppToken);
elsetracker++; elsetracker++;
if (! ifdepth++) ifdepth++;
ifloc = ppToken->loc;
if (ifdepth > maxIfNesting) { if (ifdepth > maxIfNesting) {
parseContext.ppError(ppToken->loc, "maximum nesting depth exceeded", "#if", ""); parseContext.ppError(ppToken->loc, "maximum nesting depth exceeded", "#if", "");
return 0; return 0;
......
...@@ -237,7 +237,6 @@ protected: ...@@ -237,7 +237,6 @@ protected:
int ifdepth; // current #if-#else-#endif nesting in the cpp.c file (pre-processor) int ifdepth; // current #if-#else-#endif nesting in the cpp.c file (pre-processor)
bool elseSeen[maxIfNesting]; // Keep a track of whether an else has been seen at a particular depth bool elseSeen[maxIfNesting]; // Keep a track of whether an else has been seen at a particular depth
int elsetracker; // #if-#else and #endif constructs...Counter. int elsetracker; // #if-#else and #endif constructs...Counter.
const char* ErrMsg;
class tMacroInput : public tInput { class tMacroInput : public tInput {
public: public:
...@@ -286,7 +285,7 @@ protected: ...@@ -286,7 +285,7 @@ protected:
// //
// from Pp.cpp // from Pp.cpp
// //
TSourceLoc ifloc; /* outermost #if */
// Used to obtain #include content. // Used to obtain #include content.
const TShader::Includer& includer; const TShader::Includer& includer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment