Sfoglia il codice sorgente

Remove get_stack_bottom

It's not used in godot-nim any longer and there were no other uses for
it.
Ruslan Mustakov 7 anni fa
parent
commit
9d6d20e67c

+ 0 - 4
core/os/os.cpp

@@ -606,10 +606,6 @@ bool OS::has_feature(const String &p_feature) {
 	return false;
 }
 
-void *OS::get_stack_bottom() const {
-	return _stack_bottom;
-}
-
 OS::OS() {
 	void *volatile stack_bottom;
 

+ 0 - 7
core/os/os.h

@@ -445,13 +445,6 @@ public:
 	virtual void force_process_input(){};
 	bool has_feature(const String &p_feature);
 
-	/**
-	 * Returns the stack bottom of the main thread of the application.
-	 * This may be of use when integrating languages with garbage collectors that
-	 * need to check whether a pointer is on the stack.
-	 */
-	virtual void *get_stack_bottom() const;
-
 	bool is_hidpi_allowed() const { return _allow_hidpi; }
 	OS();
 	virtual ~OS();

+ 0 - 4
modules/gdnative/gdnative/gdnative.cpp

@@ -52,10 +52,6 @@ godot_object GDAPI *godot_global_get_singleton(char *p_name) {
 	return (godot_object *)Engine::get_singleton()->get_singleton_object(String(p_name));
 } // result shouldn't be freed
 
-void GDAPI *godot_get_stack_bottom() {
-	return OS::get_singleton()->get_stack_bottom();
-}
-
 // MethodBind API
 
 godot_method_bind GDAPI *godot_method_bind_get_method(const char *p_classname, const char *p_methodname) {

+ 0 - 6
modules/gdnative/gdnative_api.json

@@ -5532,12 +5532,6 @@
           ["char *", "p_name"]
         ]
       },
-      {
-        "name": "godot_get_stack_bottom",
-        "return_type": "void *",
-        "arguments": [
-        ]
-      },
       {
         "name": "godot_method_bind_get_method",
         "return_type": "godot_method_bind *",

+ 0 - 4
modules/gdnative/include/gdnative/gdnative.h

@@ -212,10 +212,6 @@ void GDAPI godot_object_destroy(godot_object *p_o);
 
 godot_object GDAPI *godot_global_get_singleton(char *p_name); // result shouldn't be freed
 
-////// OS API
-
-void GDAPI *godot_get_stack_bottom(); //  returns stack bottom of the main thread
-
 ////// MethodBind API
 
 typedef struct {