Skip to content

Commit b80cffc

Browse files
authored
Merge pull request #79921 from rintaro/astgen-stmt-bridging-unused-var
[ASTGen][NFC] Remove unused variable
2 parents 9e721a3 + ae5f0f1 commit b80cffc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/AST/Bridging/StmtBridging.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ BridgedBreakStmt BridgedBreakStmt_createParsed(BridgedDeclContext cDeclContext,
100100
cTargetLoc.unbridged(), cDeclContext.unbridged());
101101
}
102102

103-
void getCaseLabelItems(BridgedArrayRef cItems,
103+
static void getCaseLabelItems(BridgedArrayRef cItems,
104104
SmallVectorImpl<CaseLabelItem> &output) {
105105
for (auto &elem : cItems.unbridged<BridgedCaseLabelItemInfo>()) {
106106
if (!elem.IsDefault) {
@@ -250,7 +250,6 @@ BridgedSwitchStmt BridgedSwitchStmt_createParsed(
250250
BridgedSourceLoc cSwitchLoc, BridgedExpr cSubjectExpr,
251251
BridgedSourceLoc cLBraceLoc, BridgedArrayRef cCases,
252252
BridgedSourceLoc cRBraceLoc) {
253-
auto &context = cContext.unbridged();
254253
SmallVector<CaseStmt *, 16> cases;
255254
for (auto cCase : cCases.unbridged<BridgedCaseStmt>())
256255
cases.push_back(cCase.unbridged());

0 commit comments

Comments
 (0)