mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
remove dead code
This commit is contained in:
parent
8fd7ae26f7
commit
88e539f2a0
@ -18,14 +18,11 @@ package de.inetsoftware.jwebassembly.module;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import de.inetsoftware.classparser.ClassFile;
|
||||
import de.inetsoftware.classparser.ClassFile.Type;
|
||||
import de.inetsoftware.classparser.ConstantClass;
|
||||
@ -86,31 +83,6 @@ public class TypeManager {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Use the type in the output.
|
||||
*
|
||||
* @param type
|
||||
* the reference to a type
|
||||
* @param id
|
||||
* the id in the type section of the wasm
|
||||
* @param fields
|
||||
* the fields of the type
|
||||
*/
|
||||
void useType( StructType type, int id, List<NamedStorageType> fields ) {
|
||||
type.code = id;
|
||||
type.fields = fields;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the registered types in numeric order.
|
||||
*
|
||||
* @return the types
|
||||
*/
|
||||
@Nonnull
|
||||
Collection<StructType> getTypes() {
|
||||
return structTypes.values();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the StructType. If needed an instance is created.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user