[gardening][Parse] Remove 2 unused flags in Parser (#4743)

* [Parse] Remove unused GreaterThanIsOperatorRAII. NFC

Last usage was removed in 68af974227.

* [Parse] Remove unused ArgumentIsParameter flag. NFC

Last usage was removed in 4e4173f2e6
This commit is contained in:
Rintaro Ishizaki
2016-09-14 13:54:03 +09:00
committed by Chris Lattner
parent 637ce3c316
commit d75c4c4cbb
3 changed files with 2 additions and 40 deletions

View File

@@ -908,14 +908,8 @@ ParserResult<Pattern> Parser::parsePattern() {
Pattern *Parser::createBindingFromPattern(SourceLoc loc, Identifier name,
bool isLet) {
VarDecl *var;
if (ArgumentIsParameter) {
var = new (Context) ParamDecl(isLet, SourceLoc(), loc, name, loc, name,
Type(), CurDeclContext);
} else {
var = new (Context) VarDecl(/*static*/ false, /*IsLet*/ isLet,
loc, name, Type(), CurDeclContext);
}
auto var = new (Context) VarDecl(/*static*/ false, /*IsLet*/ isLet,
loc, name, Type(), CurDeclContext);
return new (Context) NamedPattern(var);
}