mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-04-22 04:27:57 +00:00
remove unused
This commit is contained in:
@@ -8,12 +8,6 @@ enum ImportedOrDeclared<T=()> {
|
||||
Declared(T),
|
||||
}
|
||||
|
||||
impl<T> ImportedOrDeclared<T> {
|
||||
fn imported(module: String, name: String) -> Self {
|
||||
ImportedOrDeclared::Imported(module, name)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> From<&elements::ImportEntry> for ImportedOrDeclared<T> {
|
||||
fn from(v: &elements::ImportEntry) -> Self {
|
||||
ImportedOrDeclared::Imported(v.module().to_owned(), v.field().to_owned())
|
||||
|
||||
Reference in New Issue
Block a user