Skip to content

Commit 81cd296

Browse files
Treiblesschorlectrueden
authored andcommitted
Always require a name when we look for ops
1 parent 1a0351e commit 81cd296

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

src/main/java/org/scijava/ops/OpService.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,6 @@ public <T> T findOpInstance(final String opName, final Nil<T> specialType, final
190190
}
191191
}
192192

193-
public <T> T findOp(final Nil<T> specialType, final Nil<?>[] inTypes, final Nil<?>[] outTypes,
194-
final Object... secondaryArgs) {
195-
return findOpInstance(null, specialType, inTypes, outTypes, secondaryArgs);
196-
}
197-
198-
public <T> T findOp(final Nil<T> specialType, final Nil<?>[] inTypes, final Nil<?> outType,
199-
final Object... secondaryArgs) {
200-
return findOpInstance(null, specialType, inTypes, new Nil[] { outType }, secondaryArgs);
201-
}
202-
203193
public <T> T findOp(final String opName, final Nil<T> specialType, final Nil<?>[] inTypes, final Nil<?>[] outTypes,
204194
final Object... secondaryArgs) {
205195
return findOpInstance(opName, specialType, inTypes, outTypes, secondaryArgs);

src/test/java/org/scijava/ops/OpsTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,6 @@ public void binaryFunction() {
7575
nilDouble//
7676
);
7777
assert 3.0 == addFunction.apply(1.0, 2.0);
78-
79-
// look up a specific implementation
80-
MathAddDoublesFunction add = ops().findOp( //
81-
new Nil<MathAddDoublesFunction>(){},
82-
new Nil[] { nilDouble, nilDouble }, //
83-
nilDouble//
84-
);
85-
assert 86.0 == add.apply(10.0, 76.0);
8678
}
8779

8880
@Test

0 commit comments

Comments
 (0)