Skip to content

Commit e74cc78

Browse files
Treiblesschorlegselzer
authored andcommitted
Remove unused method
1 parent 4539298 commit e74cc78

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

src/main/java/org/scijava/ops/matcher/DefaultOpTypeMatchingService.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import java.lang.reflect.TypeVariable;
3434
import java.util.ArrayList;
3535
import java.util.Collections;
36-
import java.util.Comparator;
3736
import java.util.HashMap;
3837
import java.util.List;
3938
import java.util.function.Predicate;
@@ -48,12 +47,9 @@
4847
import org.scijava.service.AbstractService;
4948
import org.scijava.service.Service;
5049
import org.scijava.struct.Member;
51-
import org.scijava.struct.StructInstance;
5250
import org.scijava.util.Types;
5351
import org.scijava.util.Types.TypeVarInfo;
5452

55-
import com.google.common.collect.Lists;
56-
5753
/**
5854
* Default service for finding ops which match a request.
5955
*
@@ -121,13 +117,6 @@ public List<OpCandidate> filterMatches(final List<OpCandidate> candidates) {
121117
return matches;
122118
}
123119

124-
@Override
125-
public StructInstance<?> match(final OpCandidate candidate) {
126-
if (checkCandidates(Collections.singletonList(candidate)).isEmpty() || !typesMatch(candidate))
127-
return null;
128-
return candidate.createOpInstance();
129-
}
130-
131120
/**
132121
* Checks whether the arg types of the candidate satisfy the padded arg
133122
* types of the candidate. Sets candidate status code if there are too many,

src/main/java/org/scijava/ops/matcher/OpTypeMatchingService.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,6 @@ public interface OpTypeMatchingService extends SciJavaService {
111111
*/
112112
List<OpCandidate> filterMatches(List<OpCandidate> candidates);
113113

114-
/**
115-
* Attempts to match the given arguments to the op described by the
116-
* specified {@link ModuleInfo}.
117-
*
118-
* @return A populated {@link StructInstance} for the matching op, or null
119-
* if the arguments do not match the op.
120-
*/
121-
StructInstance<?> match(OpCandidate candidate);
122-
123114
/**
124115
* Checks that each parameter is type-compatible with its corresponding
125116
* argument.

0 commit comments

Comments
 (0)