diff --git a/wasm/codegen/generated/bindings.cc b/wasm/codegen/generated/bindings.cc index 60cc3cdc..64f835ce 100644 --- a/wasm/codegen/generated/bindings.cc +++ b/wasm/codegen/generated/bindings.cc @@ -508,19 +508,6 @@ struct MjTimerStat { bool owned_ = false; }; -struct MjVFS { - explicit MjVFS(mjVFS *ptr); - ~MjVFS(); - MjVFS(); - mjVFS* get() const; - void set(mjVFS* ptr); - // TODO: Define primitive pointer field with complex extents manually for impl_ - - private: - mjVFS* ptr_; - bool owned_ = false; -}; - struct MjVisualGlobal { explicit MjVisualGlobal(mjVisualGlobal *ptr); ~MjVisualGlobal(); @@ -7554,23 +7541,6 @@ void MjTimerStat::set(mjTimerStat* ptr) { ptr_ = ptr; } -MjVFS::MjVFS(mjVFS *ptr) : ptr_(ptr) {} -MjVFS::~MjVFS() { - if (owned_ && ptr_) { - mj_deleteVFS(ptr_); - } -} -MjVFS::MjVFS() : ptr_(new mjVFS) { - owned_ = true; - mj_defaultVFS(ptr_); -} -mjVFS* MjVFS::get() const { - return ptr_; -} -void MjVFS::set(mjVFS* ptr) { - ptr_ = ptr; -} - MjVisual::MjVisual(mjVisual *ptr) : ptr_(ptr), global(&ptr_->global), quality(&ptr_->quality), headlight(&ptr_->headlight), map(&ptr_->map), scale(&ptr_->scale), rgba(&ptr_->rgba) {} MjVisual::~MjVisual() { if (owned_ && ptr_) { @@ -9407,10 +9377,6 @@ EMSCRIPTEN_BINDINGS(mujoco_bindings) { .property("duration", &MjTimerStat::duration, &MjTimerStat::set_duration, reference()) .property("number", &MjTimerStat::number, &MjTimerStat::set_number, reference()) ; - emscripten::class_("MjVFS") - .constructor<>() - // TODO: .property("impl_", &MjVFS::impl_) - ; emscripten::class_("MjVisual") .constructor<>() .function("copy", &MjVisual::copy, take_ownership()) diff --git a/wasm/codegen/helpers/constants.py b/wasm/codegen/helpers/constants.py index 541e8a56..52007fbc 100644 --- a/wasm/codegen/helpers/constants.py +++ b/wasm/codegen/helpers/constants.py @@ -295,6 +295,7 @@ SKIPPED_STRUCTS: List[str] = [ "mjTask", "mjThreadPool", "mjUI", + "mjVFS", "mjrContext", "mjrRect", "mjuiDef", @@ -302,7 +303,7 @@ SKIPPED_STRUCTS: List[str] = [ "mjuiSection", "mjuiState", "mjuiThemeColor", - "mjuiThemeSpacing", + "mjuiThemeSpacing" # go/keep-sorted end ]