Skip to content

Commit cc51a87

Browse files
committed
[sourcekitd] Remove dead method for checking invalid loc diagnostics
1 parent 5c82eaa commit cc51a87

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

tools/SourceKit/lib/SwiftLang/SwiftEditor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ void EditorDiagConsumer::handleDiagnostic(
8282
return;
8383

8484
if (Loc.isInvalid()) {
85-
if (Kind == DiagnosticKind::Error)
86-
HadInvalidLocError = true;
8785
clearLastDiag();
8886
return;
8987
}

tools/SourceKit/lib/SwiftLang/SwiftEditorDiagConsumer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class EditorDiagConsumer : public swift::DiagnosticConsumer {
4040
return BufferDiagnostics[LastDiagBufferID][LastDiagIndex];
4141
}
4242

43-
bool HadInvalidLocError = false;
4443
bool HadAnyError = false;
4544

4645
public:
@@ -64,8 +63,6 @@ class EditorDiagConsumer : public swift::DiagnosticConsumer {
6463

6564
void getAllDiagnostics(SmallVectorImpl<DiagnosticEntryInfo> &Result);
6665

67-
bool hadErrorWithInvalidLoc() const { return HadInvalidLocError; }
68-
6966
bool hadAnyError() const { return HadAnyError; }
7067

7168
void handleDiagnostic(swift::SourceManager &SM, swift::SourceLoc Loc,

0 commit comments

Comments
 (0)