Skip to content

Commit

Permalink
[Refactoring] Remove unused variable evaluatingArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Nov 25, 2014
1 parent c0e8143 commit cbbc61e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/interpret.c
Expand Up @@ -853,7 +853,6 @@ Expression *interpret(FuncDeclaration *fd, InterState *istate, Expressions *argu
if (CTFEExp::isCantExp(thisarg->interpret(istate)))
return CTFEExp::cantexp;
}
static int evaluatingArgs = 0;

// Place to hold all the arguments to the function while
// we are evaluating them.
Expand Down Expand Up @@ -882,9 +881,7 @@ Expression *interpret(FuncDeclaration *fd, InterState *istate, Expressions *argu
return CTFEExp::cantexp;
}
// Convert all reference arguments into lvalue references
++evaluatingArgs;
earg = earg->interpret(istate, ctfeNeedLvalueRef);
--evaluatingArgs;
if (CTFEExp::isCantExp(earg))
return earg;
}
Expand All @@ -903,9 +900,7 @@ Expression *interpret(FuncDeclaration *fd, InterState *istate, Expressions *argu
*/
earg = ((AddrExp *)earg)->e1;
}
++evaluatingArgs;
earg = earg->interpret(istate);
--evaluatingArgs;
if (CTFEExp::isCantExp(earg))
return earg;
/* Struct literals are passed by value, but we don't need to
Expand Down

0 comments on commit cbbc61e

Please sign in to comment.