Keep reference algorithms in tests
This commit is contained in:
@@ -102,10 +102,6 @@ func canonicalDiagnostics(diagnostics []Diagnostic) []Diagnostic {
|
||||
return canonical
|
||||
}
|
||||
|
||||
func compareDiagnostic(left, right Diagnostic) int {
|
||||
return compareDiagnosticWithPaths(left, right, left.Path.String(), right.Path.String())
|
||||
}
|
||||
|
||||
func compareDiagnosticWithPaths(left, right Diagnostic, leftPath, rightPath string) int {
|
||||
if order := compareOptionalLocation(left.Primary, right.Primary); order != 0 {
|
||||
return order
|
||||
|
||||
Reference in New Issue
Block a user