Bug 1757956 - Part 1: Removed unused JS_freeop API r=jandem

Differential Revision: https://phabricator.services.mozilla.com/D140523
This commit is contained in:
Jon Coppeard
2022-03-10 08:40:03 +00:00
parent aa6117776f
commit d12b9c37b9
2 changed files with 0 additions and 11 deletions

View File

@@ -15,7 +15,6 @@
#include "jstypes.h" // JS_PUBLIC_API
struct JS_PUBLIC_API JSContext;
class JS_PUBLIC_API JSFreeOp;
class JS_PUBLIC_API JSObject;
struct JS_PUBLIC_API JSRuntime;
@@ -42,12 +41,6 @@ extern JS_PUBLIC_API void* JS_string_realloc(JSContext* cx, void* p,
extern JS_PUBLIC_API void JS_string_free(JSContext* cx, void* p);
/**
* A wrapper for |js_free(p)| that may delay |js_free(p)| invocation as a
* performance optimization as specified by the given JSFreeOp instance.
*/
extern JS_PUBLIC_API void JS_freeop(JSFreeOp* fop, void* p);
namespace JS {
/**

View File

@@ -1238,10 +1238,6 @@ JS_PUBLIC_API void* JS_string_realloc(JSContext* cx, void* p, size_t oldBytes,
JS_PUBLIC_API void JS_string_free(JSContext* cx, void* p) { return js_free(p); }
JS_PUBLIC_API void JS_freeop(JSFreeOp* fop, void* p) {
return fop->freeUntracked(p);
}
JS_PUBLIC_API void JS::AddAssociatedMemory(JSObject* obj, size_t nbytes,
JS::MemoryUse use) {
MOZ_ASSERT(obj);