Remove unnecessary methods from DocAndScore (#13769)

This commit is contained in:
Shubham Chaudhary 2024-09-12 02:02:23 +05:30 committed by GitHub
parent f0fd51c4d5
commit 8760654faa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 13 deletions

View File

@ -84,18 +84,5 @@ final class MaxScoreAccumulator {
}
return cmp;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DocAndScore result = (DocAndScore) o;
return docBase == result.docBase && Float.compare(result.score, score) == 0;
}
@Override
public String toString() {
return "DocAndScore{" + "docBase=" + docBase + ", score=" + score + '}';
}
}
}