Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Commit 22135df

Browse files
committed
Remove the dead code transformTypeRef.
1 parent 8e6df1e commit 22135df

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Diff for: wasm/src/main/scala/ir2wasm/TypeTransformer.scala

-11
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@ object TypeTransformer {
3030
case _ => List(transformType(t))
3131
}
3232

33-
def transformTypeRef(t: IRTypes.TypeRef)(implicit ctx: ReadOnlyWasmContext): Types.WasmType =
34-
t match {
35-
case arrayTypeRef: IRTypes.ArrayTypeRef =>
36-
Types.WasmRefType.nullable(
37-
Names.WasmTypeName.WasmStructTypeName.forArrayClass(arrayTypeRef)
38-
)
39-
case IRTypes.ClassRef(className) =>
40-
transformClassByName(className)
41-
case IRTypes.PrimRef(tpe) => transformPrimType(tpe)
42-
}
43-
4433
/** Transforms a value type to a unique Wasm type.
4534
*
4635
* This method cannot be used for `void` and `nothing`, since they have no corresponding Wasm

0 commit comments

Comments
 (0)