summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-02-25 14:27:31 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-08-18 18:51:25 +0200
commit465c423abb72dfe95007e0eba13032a71fe63cff (patch)
tree26c49befae5512e58296fe41e9adf55c2380f12f /core
parent462bb3bf329229dd4c11daa38c7847f5985fb1a1 (diff)
Remove unimplemented `OS.dump_memory_to_file()` method
This method never did anything in Godot since 3.0, since its code was commented out. The last time the method had an implementation was in Godot 2.1.x.
Diffstat (limited to 'core')
-rw-r--r--core/core_bind.cpp5
-rw-r--r--core/core_bind.h1
-rw-r--r--core/os/os.cpp4
-rw-r--r--core/os/os.h1
4 files changed, 0 insertions, 11 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp
index 630bd68e65..3677db4f03 100644
--- a/core/core_bind.cpp
+++ b/core/core_bind.cpp
@@ -436,10 +436,6 @@ bool OS::is_stdout_verbose() const {
return ::OS::get_singleton()->is_stdout_verbose();
}
-void OS::dump_memory_to_file(const String &p_file) {
- ::OS::get_singleton()->dump_memory_to_file(p_file.utf8().get_data());
-}
-
struct OSCoreBindImg {
String path;
Size2 size;
@@ -666,7 +662,6 @@ void OS::_bind_methods() {
ClassDB::bind_method(D_METHOD("is_debug_build"), &OS::is_debug_build);
- ClassDB::bind_method(D_METHOD("dump_memory_to_file", "file"), &OS::dump_memory_to_file);
ClassDB::bind_method(D_METHOD("dump_resources_to_file", "file"), &OS::dump_resources_to_file);
ClassDB::bind_method(D_METHOD("print_resources_in_use", "short"), &OS::print_resources_in_use, DEFVAL(false));
ClassDB::bind_method(D_METHOD("print_all_resources", "tofile"), &OS::print_all_resources, DEFVAL(""));
diff --git a/core/core_bind.h b/core/core_bind.h
index 79230bd685..9e1808c334 100644
--- a/core/core_bind.h
+++ b/core/core_bind.h
@@ -199,7 +199,6 @@ public:
String get_model_name() const;
- void dump_memory_to_file(const String &p_file);
void dump_resources_to_file(const String &p_file);
void print_resources_in_use(bool p_short = false);
diff --git a/core/os/os.cpp b/core/os/os.cpp
index 1358c926d1..4a6729328a 100644
--- a/core/os/os.cpp
+++ b/core/os/os.cpp
@@ -190,10 +190,6 @@ void OS::set_stderr_enabled(bool p_enabled) {
_stderr_enabled = p_enabled;
}
-void OS::dump_memory_to_file(const char *p_file) {
- //Memory::dump_static_mem_to_file(p_file);
-}
-
static Ref<FileAccess> _OSPRF;
static void _OS_printres(Object *p_obj) {
diff --git a/core/os/os.h b/core/os/os.h
index 9152b797ef..00905b3eab 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -249,7 +249,6 @@ public:
virtual bool is_disable_crash_handler() const { return false; }
virtual void initialize_debugging() {}
- virtual void dump_memory_to_file(const char *p_file);
virtual void dump_resources_to_file(const char *p_file);
virtual void print_resources_in_use(bool p_short = false);
virtual void print_all_resources(String p_to_file = "");