@@ -58,14 +58,6 @@ let rec toString converter =
58
58
let typeGetConverterNormalized ~config ~inline ~lookupId ~typeNameIsInterface
59
59
type0 =
60
60
let circular = ref " " in
61
- let expandOneLevel type_ =
62
- match type_ with
63
- | Ident {builtin = false ; name} -> (
64
- match name |> lookupId with
65
- | (t : CodeItem.exportTypeItem ) -> t.type_
66
- | exception Not_found -> type_)
67
- | _ -> type_
68
- in
69
61
let rec visit ~(visited : StringSet.t ) type_ =
70
62
let normalized_ = type_ in
71
63
match type_ with
@@ -111,9 +103,8 @@ let typeGetConverterNormalized ~config ~inline ~lookupId ~typeNameIsInterface
111
103
circular := name;
112
104
(IdentC , normalized_))
113
105
else
114
- let visited = visited |> StringSet. add name in
115
106
match name |> lookupId with
116
- | {annotation = GenTypeOpaque } -> (IdentC , normalized_)
107
+ | {CodeItem. annotation = GenTypeOpaque } -> (IdentC , normalized_)
117
108
| {annotation = NoGenType } -> (IdentC , normalized_)
118
109
| {typeVars; type_} -> (
119
110
let pairs =
@@ -170,7 +161,6 @@ let typeGetConverterNormalized ~config ~inline ~lookupId ~typeNameIsInterface
170
161
match withPayloadConverted with
171
162
| [] when ordinaryVariant -> normalized_
172
163
| [payload] when ordinaryVariant ->
173
- let _unboxed = payload.t |> expandOneLevel |> typeIsObject in
174
164
let normalized = Variant {variant with payloads = [payload]} in
175
165
normalized
176
166
| withPayloadConverted ->
0 commit comments