Skip to content

Commit 688bba7

Browse files
committed
refactor(dynamite): remove unused resolvedInterfaces
Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
1 parent 42551c6 commit 688bba7

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

packages/dynamite/dynamite/lib/src/builder/resolve_object.dart

-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ TypeResultObject resolveObject(
1919
);
2020

2121
if (state.resolvedTypes.add(result)) {
22-
if (schema.allOf == null) {
23-
state.resolvedInterfaces.add(result);
24-
}
25-
2622
final $interface = buildInterface(
2723
spec,
2824
state,

packages/dynamite/dynamite/lib/src/builder/state.dart

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class State {
1111

1212
final output = <Spec>[];
1313
final resolvedTypes = <TypeResult>{};
14-
final resolvedInterfaces = <TypeResult>{};
1514
final emitter = DartEmitter.scoped(
1615
orderDirectives: true,
1716
useNullSafetySyntax: true,

0 commit comments

Comments
 (0)