Skip to content

Commit

Permalink
HSEARCH-5039 Remove unused collector method
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta authored and yrodiere committed Feb 26, 2024
1 parent ce16f5a commit d7ca0a5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.hibernate.search.backend.lucene.search.query.LuceneSearchQuery;
import org.hibernate.search.backend.lucene.search.sort.impl.LuceneSearchSort;
import org.hibernate.search.backend.lucene.search.sort.impl.LuceneSearchSortCollector;
import org.hibernate.search.backend.lucene.types.sort.comparatorsource.impl.LuceneFieldComparatorSource;
import org.hibernate.search.backend.lucene.work.impl.LuceneWorkFactory;
import org.hibernate.search.engine.backend.session.spi.BackendSessionContext;
import org.hibernate.search.engine.search.aggregation.AggregationKey;
Expand Down Expand Up @@ -183,11 +182,6 @@ public void collectSortField(SortField sortField) {
sortFields.add( sortField );
}

@Override
public void collectSortField(SortField sortField, LuceneFieldComparatorSource nestedFieldSort) {
collectSortField( sortField );
}

@Override
public void collectSortFields(SortField[] sortFields) {
if ( sortFields == null || sortFields.length == 0 ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
*/
package org.hibernate.search.backend.lucene.search.sort.impl;

import org.hibernate.search.backend.lucene.types.sort.comparatorsource.impl.LuceneFieldComparatorSource;

import org.apache.lucene.search.SortField;

/**
Expand All @@ -21,8 +19,6 @@ public interface LuceneSearchSortCollector {

void collectSortField(SortField sortField);

void collectSortField(SortField sortField, LuceneFieldComparatorSource nestedFieldSort);

void collectSortFields(SortField[] sortFields);

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import org.hibernate.search.backend.lucene.search.predicate.impl.PredicateRequestContext;
import org.hibernate.search.backend.lucene.search.sort.impl.LuceneSearchSort;
import org.hibernate.search.backend.lucene.search.sort.impl.LuceneSearchSortCollector;
import org.hibernate.search.backend.lucene.types.sort.comparatorsource.impl.LuceneFieldComparatorSource;
import org.hibernate.search.engine.search.predicate.SearchPredicate;
import org.hibernate.search.engine.search.sort.SearchSort;

Expand All @@ -39,11 +38,6 @@ public void collectSortField(SortField sortField) {
result.add( sortField );
}

@Override
public void collectSortField(SortField sortField, LuceneFieldComparatorSource nestedFieldSort) {
result.add( sortField );
}

@Override
public void collectSortFields(SortField[] sortFields) {
Collections.addAll( result, sortFields );
Expand Down

0 comments on commit d7ca0a5

Please sign in to comment.