From 28d944c6afda08444d6811906699733b0cc7acdc Mon Sep 17 00:00:00 2001 From: Li Jie Date: Thu, 17 Apr 2025 22:59:11 +0800 Subject: [PATCH] remove unused wasm_import --- runtime/internal/lib/syscall/fs_wasip1.go | 8 -------- runtime/internal/lib/syscall/net_wasip1.go | 8 -------- 2 files changed, 16 deletions(-) diff --git a/runtime/internal/lib/syscall/fs_wasip1.go b/runtime/internal/lib/syscall/fs_wasip1.go index e7ad5e53..17fe7f4c 100644 --- a/runtime/internal/lib/syscall/fs_wasip1.go +++ b/runtime/internal/lib/syscall/fs_wasip1.go @@ -190,14 +190,6 @@ type prestat struct { dir prestatDir } -//go:wasmimport wasi_snapshot_preview1 fd_prestat_get -//go:noescape -func fd_prestat_get(fd int32, prestat *prestat) Errno - -//go:wasmimport wasi_snapshot_preview1 fd_prestat_dir_name -//go:noescape -func fd_prestat_dir_name(fd int32, path *byte, pathLen size) Errno - type opendir struct { fd int32 name string diff --git a/runtime/internal/lib/syscall/net_wasip1.go b/runtime/internal/lib/syscall/net_wasip1.go index 05092a38..a923821a 100644 --- a/runtime/internal/lib/syscall/net_wasip1.go +++ b/runtime/internal/lib/syscall/net_wasip1.go @@ -16,14 +16,6 @@ const ( type sdflags = uint32 -//go:wasmimport wasi_snapshot_preview1 sock_accept -//go:noescape -func sock_accept(fd int32, flags fdflags, newfd *int32) Errno - -//go:wasmimport wasi_snapshot_preview1 sock_shutdown -//go:noescape -func sock_shutdown(fd int32, flags sdflags) Errno - func Socket(proto, sotype, unused int) (fd int, err error) { panic("not implemented") }