From db59ca36b1472c187c234327f6901879cfe25a19 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 25 Aug 2024 17:37:20 +0200 Subject: [PATCH] [chore] Remove unused "env" module (#3235) --- internal/media/ffmpeg/wasm.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/internal/media/ffmpeg/wasm.go b/internal/media/ffmpeg/wasm.go index ff5506f2a..705b16fc3 100644 --- a/internal/media/ffmpeg/wasm.go +++ b/internal/media/ffmpeg/wasm.go @@ -180,17 +180,8 @@ func initRuntime(ctx context.Context) error { // Instantiate runtime with prepared config. rt := wazero.NewRuntimeWithConfig(ctx, cfg) - // Prepare default "env" host module. - env := rt.NewHostModuleBuilder("env") - - // Instantiate host "env" module. - _, err := env.Instantiate(ctx) - if err != nil { - return err - } - - // Instantiate wasi snapshot preview features in runtime. - _, err = wasi_snapshot_preview1.Instantiate(ctx, rt) + // Instantiate wasi snapshot preview features into runtime. + _, err := wasi_snapshot_preview1.Instantiate(ctx, rt) if err != nil { return err }