Skip to content

Commit eee7937

Browse files
committed
open api: remove dead code
- ref #3705
1 parent 66e14eb commit eee7937

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

modules/jooby-openapi/src/main/java/io/jooby/internal/openapi/AnnotationParser.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,6 @@ public static List<OperationExt> parse(
206206
.findFirst()
207207
.orElse(type);
208208
return parse(ctx, prefix, controllerType);
209-
} else if (methodInsnNode.getOpcode() == Opcodes.INVOKEINTERFACE) {
210-
// TODO: almost sure this is dead code
211-
AbstractInsnNode methodPrev = methodInsnNode.getPrevious();
212-
if (methodPrev instanceof VarInsnNode) {
213-
// mvc(daggerApp.myController());
214-
Type type = Type.getReturnType(methodInsnNode.desc);
215-
return parse(ctx, prefix, type);
216-
} else if (methodPrev instanceof LdcInsnNode ldcInsnNode) {
217-
// mvc(beanScope.get(...));
218-
Type type = (Type) (ldcInsnNode).cst;
219-
return parse(ctx, prefix, type);
220-
}
221209
} else {
222210
if (methodInsnNode.getPrevious() instanceof LdcInsnNode ldcInsnNode) {
223211
// mvc(require(Controller.class))

0 commit comments

Comments
 (0)