Remove mj_activate and mj_deactivate.

PiperOrigin-RevId: 538799120
Change-Id: I4d6729131e20ab9ae15c94c221ba83ae5732e942
This commit is contained in:
Yuval Tassa
2023-06-08 08:54:55 -07:00
committed by Copybara-Service
parent 188b04fba5
commit 466c9aca82
10 changed files with 4 additions and 87 deletions
+2 -14
View File
@@ -62,26 +62,14 @@ void GlobalModel::Clear() {
}
// single instance of global model, protected with mutex
static GlobalModel themodel;
static std::mutex themutex;
//---------------------------------- Functions -----------------------------------------------------
// Return 1 (for backward compatibility).
int mj_activate(const char* filename) {
return 1;
}
// Do nothing (for backward compatibility).
void mj_deactivate(void) {
}
// mj_loadXML helper function
mjModel* _loadXML(const char* filename, int vfs_provider,
char* error, int error_sz) {