mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sourcekitd] Remove dead method for checking invalid loc diagnostics
This commit is contained in:
@@ -82,8 +82,6 @@ void EditorDiagConsumer::handleDiagnostic(
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (Loc.isInvalid()) {
|
if (Loc.isInvalid()) {
|
||||||
if (Kind == DiagnosticKind::Error)
|
|
||||||
HadInvalidLocError = true;
|
|
||||||
clearLastDiag();
|
clearLastDiag();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ class EditorDiagConsumer : public swift::DiagnosticConsumer {
|
|||||||
return BufferDiagnostics[LastDiagBufferID][LastDiagIndex];
|
return BufferDiagnostics[LastDiagBufferID][LastDiagIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HadInvalidLocError = false;
|
|
||||||
bool HadAnyError = false;
|
bool HadAnyError = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -64,8 +63,6 @@ public:
|
|||||||
|
|
||||||
void getAllDiagnostics(SmallVectorImpl<DiagnosticEntryInfo> &Result);
|
void getAllDiagnostics(SmallVectorImpl<DiagnosticEntryInfo> &Result);
|
||||||
|
|
||||||
bool hadErrorWithInvalidLoc() const { return HadInvalidLocError; }
|
|
||||||
|
|
||||||
bool hadAnyError() const { return HadAnyError; }
|
bool hadAnyError() const { return HadAnyError; }
|
||||||
|
|
||||||
void handleDiagnostic(swift::SourceManager &SM, swift::SourceLoc Loc,
|
void handleDiagnostic(swift::SourceManager &SM, swift::SourceLoc Loc,
|
||||||
|
|||||||
Reference in New Issue
Block a user