Skip to content

Commit 6828b30

Browse files
committed
[NFC] Drop An Unused Name Parsing Entrypoint
1 parent 382809a commit 6828b30

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

include/swift/Parse/Parser.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,9 +1934,6 @@ DeclNameRef formDeclNameRef(ASTContext &ctx,
19341934
bool isInitializer,
19351935
bool isSubscript = false);
19361936

1937-
/// Parse a stringified Swift declaration name, e.g. "init(frame:)".
1938-
DeclName parseDeclName(ASTContext &ctx, StringRef name);
1939-
19401937
/// Whether a given token can be the start of a decl.
19411938
bool isKeywordPossibleDeclStart(const Token &Tok);
19421939

lib/Parse/Parser.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,10 +1498,6 @@ DeclNameRef swift::formDeclNameRef(ASTContext &ctx,
14981498
return DeclNameRef({ ctx, baseNameId, argumentLabelIds });
14991499
}
15001500

1501-
DeclName swift::parseDeclName(ASTContext &ctx, StringRef name) {
1502-
return parseDeclName(name).formDeclName(ctx);
1503-
}
1504-
15051501
void PrettyStackTraceParser::print(llvm::raw_ostream &out) const {
15061502
out << "With parser at source location: ";
15071503
P.Tok.getLoc().print(out, P.Context.SourceMgr);

0 commit comments

Comments
 (0)