Skip to content

Commit e2765d4

Browse files
authored
Merge pull request #14533 from rudkx/squelch-unused-static-function-warning
2 parents db1c673 + 22dde52 commit e2765d4

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

lib/Sema/DerivedConformanceEquatableHashable.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -775,29 +775,6 @@ static Expr* combineHashValuesAssignmentExpr(ASTContext &C,
775775
return assignExpr;
776776
}
777777

778-
/// Returns a new assignment expression that invokes _mixInt on a variable and
779-
/// assigns the result back to the same variable.
780-
/// \p C The AST context.
781-
/// \p resultVar The integer variable to be mixed.
782-
/// \return The expression that mixes the integer value.
783-
static Expr* mixIntAssignmentExpr(ASTContext &C, VarDecl* resultVar) {
784-
auto mixinFunc = C.getMixIntDecl();
785-
auto mixinFuncExpr = new (C) DeclRefExpr(mixinFunc, DeclNameLoc(),
786-
/*implicit*/ true);
787-
auto rhsResultRef = new (C) DeclRefExpr(resultVar, DeclNameLoc(),
788-
/*implicit*/ true);
789-
// _mixInt(result)
790-
auto mixedResultExpr = CallExpr::createImplicit(C, mixinFuncExpr,
791-
{ rhsResultRef }, {});
792-
793-
// result = _mixInt(result)
794-
auto lhsResultRef = new (C) DeclRefExpr(resultVar, DeclNameLoc(),
795-
/*implicit*/ true);
796-
auto assignExpr = new (C) AssignExpr(lhsResultRef, SourceLoc(),
797-
mixedResultExpr, /*implicit*/ true);
798-
return assignExpr;
799-
}
800-
801778
static void
802779
deriveBodyHashable_enum_hashValue(AbstractFunctionDecl *hashValueDecl) {
803780
auto parentDC = hashValueDecl->getDeclContext();

0 commit comments

Comments
 (0)