From 031c88f91e09e9cf94aba8aac15af96adb23603f Mon Sep 17 00:00:00 2001 From: Stephane Letz Date: Tue, 9 Apr 2024 10:49:53 +0200 Subject: [PATCH] Cleanup. --- compiler/generator/wasm/wasm_instructions.hh | 8 +------- compiler/generator/wasm/wast_instructions.hh | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/compiler/generator/wasm/wasm_instructions.hh b/compiler/generator/wasm/wasm_instructions.hh index b8ea258b3f..e7daae68a6 100644 --- a/compiler/generator/wasm/wasm_instructions.hh +++ b/compiler/generator/wasm/wasm_instructions.hh @@ -804,13 +804,7 @@ class WASMInstVisitor : public DispatchVisitor, public WASInst { } finishSection(start); } - - virtual void visit(AddSoundfileInst* inst) - { - // Not supported for now - // throw faustexception("ERROR : 'soundfile' primitive not yet supported for wasm\n"); - } - + virtual void visit(DeclareVarInst* inst) { bool is_struct = inst->fAddress->isStruct() || inst->fAddress->isStaticStruct(); diff --git a/compiler/generator/wasm/wast_instructions.hh b/compiler/generator/wasm/wast_instructions.hh index 0c16cbaec9..938d26406a 100644 --- a/compiler/generator/wasm/wast_instructions.hh +++ b/compiler/generator/wasm/wast_instructions.hh @@ -93,13 +93,7 @@ class WASTInstVisitor : public TextInstVisitor, public WASInst { } virtual ~WASTInstVisitor() {} - - virtual void visit(AddSoundfileInst* inst) - { - // Not supported for now - // throw faustexception("ERROR : 'soundfile' primitive not yet supported for wast\n"); - } - + virtual void visit(DeclareVarInst* inst) { bool is_struct = inst->fAddress->isStruct() || inst->fAddress->isStaticStruct();