diff --git a/source/scriptinterface/ScriptInterface.h b/source/scriptinterface/ScriptInterface.h index da85611f46..cfa610c9e3 100644 --- a/source/scriptinterface/ScriptInterface.h +++ b/source/scriptinterface/ScriptInterface.h @@ -308,18 +308,6 @@ public: */ template static bool FromJSProperty(JSContext* cx, const JS::HandleValue val, const char* name, T& ret); - /** - * MaybeGC tries to determine whether garbage collection in cx's runtime would free up enough memory to be worth the amount of time it would take. - * This calls JS_MaybeGC directly, which does not do incremental GC. Usually you should prefer MaybeIncrementalRuntimeGC. - */ - void MaybeGC(); - - /** - * Triggers a full non-incremental garbage collection immediately. That should only be required in special cases and normally - * you should try to use MaybeIncrementalRuntimeGC instead. - */ - void ForceGC(); - /** * MathRandom (this function) calls the random number generator assigned to this ScriptInterface instance and * returns the generated number.