[qjs] Revert JS_SetMaxStackSize to upstream

Part 4a of a 4 part refactor.

Bug: 60081
Change-Id: If9021a0235c6d5d2a884d5096fdc06d2d4b9d9fe
diff --git a/quickjs.c b/quickjs.c
index ebaccb3..66e11fe 100644
--- a/quickjs.c
+++ b/quickjs.c
@@ -194,7 +194,7 @@
     JS_URI_ERROR,
     JS_INTERNAL_ERROR,
     JS_AGGREGATE_ERROR,
-
+    
     JS_NATIVE_ERROR_COUNT, /* number of different NativeError objects */
 } JSErrorEnum;
 
@@ -279,7 +279,7 @@
 
     JSHostPromiseRejectionTracker *host_promise_rejection_tracker;
     void *host_promise_rejection_tracker_opaque;
-
+    
     struct list_head job_list; /* list of JSJobEntry.link */
 
     JSModuleNormalizeFunc *module_normalize_func;
@@ -289,7 +289,7 @@
     BOOL can_block : 8; /* TRUE if Atomics.wait can block */
     /* used to allocate, free and clone SharedArrayBuffers */
     JSSharedArrayBufferFunctions sab_funcs;
-
+    
     /* Shape hash table */
     int shape_hash_bits;
     int shape_hash_size;
@@ -851,7 +851,7 @@
         struct {
             int __gc_ref_count; /* corresponds to header.ref_count */
             uint8_t __gc_mark; /* corresponds to header.mark/gc_obj_type */
-
+            
             uint8_t extensible : 1;
             uint8_t free_mark : 1; /* only used when freeing objects with cycles */
             uint8_t is_exotic : 1; /* TRUE if object has exotic property handlers */
@@ -2327,23 +2327,11 @@
     return ctx->rt;
 }
 
-// TODO(fxb/60081): For the purposes of backwards-compatibility, we renamed
-// upstream's JS_SetMaxStackSize to JS_SetMaxStackSize_New.  Migrate callers of
-// JS_SetMaxStackSize to JS_SetMaxStackSize_New (check) , then make
-// JS_SetMaxStackSize a duplicate of JS_SetMaxStackSize_New (check), then
-// migrate callers to JS_SetMaxStackSize, then delete JS_SetMaxStackSize_New.
-
-void JS_SetMaxStackSize_New(JSRuntime *rt, size_t stack_size)
-{
-    rt->stack_size = stack_size;
-}
-
 void JS_SetMaxStackSize(JSRuntime *rt, size_t stack_size)
 {
     rt->stack_size = stack_size;
 }
 
-
 static inline BOOL is_strict_mode(JSContext *ctx)
 {
     JSStackFrame *sf = ctx->rt->current_stack_frame;
diff --git a/quickjs.h b/quickjs.h
index 4b2356a..bb84829 100644
--- a/quickjs.h
+++ b/quickjs.h
@@ -333,15 +333,7 @@
 void JS_SetRuntimeInfo(JSRuntime *rt, const char *info);
 void JS_SetMemoryLimit(JSRuntime *rt, size_t limit);
 void JS_SetGCThreshold(JSRuntime *rt, size_t gc_threshold);
-
-// TODO(fxb/60081): For the purposes of backwards-compatibility, we renamed
-// upstream's JS_SetMaxStackSize to JS_SetMaxStackSize_New.  Migrate callers of
-// JS_SetMaxStackSize to JS_SetMaxStackSize_New (check), then make
-// JS_SetMaxStackSize a duplicate of JS_SetMaxStackSize_New (check), then
-// migrate callers to JS_SetMaxStackSize, then delete JS_SetMaxStackSize_New.
-void JS_SetMaxStackSize_New(JSRuntime *rt, size_t stack_size);
 void JS_SetMaxStackSize(JSRuntime *rt, size_t stack_size);
-
 JSRuntime *JS_NewRuntime2(const JSMallocFunctions *mf, void *opaque);
 void JS_FreeRuntime(JSRuntime *rt);
 void *JS_GetRuntimeOpaque(JSRuntime *rt);