diff --git a/core/src/main/java/org/elasticsearch/index/search/MatchQuery.java b/core/src/main/java/org/elasticsearch/index/search/MatchQuery.java index a8b0b55bd30..14b6e120fb7 100644 --- a/core/src/main/java/org/elasticsearch/index/search/MatchQuery.java +++ b/core/src/main/java/org/elasticsearch/index/search/MatchQuery.java @@ -286,8 +286,6 @@ public class MatchQuery { } protected Query zeroTermsQuery() { - // TODO This is weird: DEFAULT_ZERO_TERMS_QUERY is a public static final field, so this can have only one value. - // why are we then having this if clause in here? return zeroTermsQuery == DEFAULT_ZERO_TERMS_QUERY ? Queries.newMatchNoDocsQuery() : Queries.newMatchAllQuery(); }