Skip to content

Remove unused static function whose last use was removed in ... #14533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions lib/Sema/DerivedConformanceEquatableHashable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,29 +775,6 @@ static Expr* combineHashValuesAssignmentExpr(ASTContext &C,
return assignExpr;
}

/// Returns a new assignment expression that invokes _mixInt on a variable and
/// assigns the result back to the same variable.
/// \p C The AST context.
/// \p resultVar The integer variable to be mixed.
/// \return The expression that mixes the integer value.
static Expr* mixIntAssignmentExpr(ASTContext &C, VarDecl* resultVar) {
auto mixinFunc = C.getMixIntDecl();
auto mixinFuncExpr = new (C) DeclRefExpr(mixinFunc, DeclNameLoc(),
/*implicit*/ true);
auto rhsResultRef = new (C) DeclRefExpr(resultVar, DeclNameLoc(),
/*implicit*/ true);
// _mixInt(result)
auto mixedResultExpr = CallExpr::createImplicit(C, mixinFuncExpr,
{ rhsResultRef }, {});

// result = _mixInt(result)
auto lhsResultRef = new (C) DeclRefExpr(resultVar, DeclNameLoc(),
/*implicit*/ true);
auto assignExpr = new (C) AssignExpr(lhsResultRef, SourceLoc(),
mixedResultExpr, /*implicit*/ true);
return assignExpr;
}

static void
deriveBodyHashable_enum_hashValue(AbstractFunctionDecl *hashValueDecl) {
auto parentDC = hashValueDecl->getDeclContext();
Expand Down