Bug 1757956 - Part 1: Removed unused JS_freeop API r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D140523
This commit is contained in:
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user