Skip to content

Commit 0384913

Browse files
Removing unused stuff
1 parent d92b5bf commit 0384913

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

lib/Sema/ConstraintLocator.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,6 @@ void ConstraintLocator::Profile(llvm::FoldingSetNodeID &id, Expr *anchor,
9595
}
9696
}
9797

98-
/// Determine whether given locator points to the type coercion
99-
/// e.g. "Hello" as String
100-
bool ConstraintLocator::isTypeCoercion() const {
101-
auto *anchor = getAnchor();
102-
auto path = getPath();
103-
104-
if (!anchor || path.empty())
105-
return false;
106-
107-
return path.back().getKind() == ConstraintLocator::TypeCoercion;
108-
}
109-
11098
/// Determine whether given locator points to the subscript reference
11199
/// e.g. `foo[0]` or `\Foo.[0]`
112100
bool ConstraintLocator::isSubscriptMemberRef() const {

lib/Sema/ConstraintLocator.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,10 +556,6 @@ class ConstraintLocator : public llvm::FoldingSetNode {
556556
bool isFunctionConversion() const {
557557
return (getSummaryFlags() & IsFunctionConversion);
558558
}
559-
560-
/// Determine whether given locator points to the type coercion
561-
/// e.g. "Hello" as String
562-
bool isTypeCoercion() const;
563559

564560
/// Determine whether given locator points to the subscript reference
565561
/// e.g. `foo[0]` or `\Foo.[0]`

0 commit comments

Comments
 (0)