Skip to content

Commit fe89fca

Browse files
committed
[Gardening] Remove setExplicitResultType
1 parent 4b676ad commit fe89fca

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

include/swift/AST/Expr.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3781,12 +3781,7 @@ class ClosureExpr : public AbstractClosureExpr {
37813781

37823782
TypeRepr *getExplicitResultTypeRepr() const {
37833783
assert(hasExplicitResultType() && "No explicit result type");
3784-
return ExplicitResultType.getTypeRepr();
3785-
}
3786-
3787-
void setExplicitResultType(SourceLoc arrowLoc, TypeLoc resultType) {
3788-
ArrowLoc = arrowLoc;
3789-
ExplicitResultType = resultType;
3784+
return ExplicitResultType->getTypeRepr();
37903785
}
37913786

37923787
/// Determine whether the closure has a single expression for its

0 commit comments

Comments
 (0)