File tree Expand file tree Collapse file tree
src/main/java/org/scijava/ops/matcher Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333import java .lang .reflect .TypeVariable ;
3434import java .util .ArrayList ;
3535import java .util .Collections ;
36- import java .util .Comparator ;
3736import java .util .HashMap ;
3837import java .util .List ;
3938import java .util .function .Predicate ;
4847import org .scijava .service .AbstractService ;
4948import org .scijava .service .Service ;
5049import org .scijava .struct .Member ;
51- import org .scijava .struct .StructInstance ;
5250import org .scijava .util .Types ;
5351import 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,
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments