summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/classes
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2022-10-23 14:38:29 +0200
committerEmmanuel Leblond <emmanuel.leblond@gmail.com>2022-11-08 21:44:31 +0100
commita706a9ceb91116aa20895df3b422c164378dc353 (patch)
tree920fab874f58d965286a89a500c11ec45e4dac33 /include/godot_cpp/classes
parente24b6b0e517bbebe4ed98d9736c0c7219c418b99 (diff)
downloadredot-cpp-a706a9ceb91116aa20895df3b422c164378dc353.tar.gz
Remove now useless `_alloc_and_copy_cstr`
Diffstat (limited to 'include/godot_cpp/classes')
-rw-r--r--include/godot_cpp/classes/wrapped.hpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp
index 83c4cc3..58da771 100644
--- a/include/godot_cpp/classes/wrapped.hpp
+++ b/include/godot_cpp/classes/wrapped.hpp
@@ -87,13 +87,6 @@ public:
return 0;
}
- static _FORCE_INLINE_ char *_alloc_and_copy_cstr(const char *p_str) {
- size_t size = strlen(p_str) + 1;
- char *ret = reinterpret_cast<char *>(memalloc(size));
- memcpy(ret, p_str, size);
- return ret;
- }
-
// Must be public but you should not touch this.
GodotObject *_owner = nullptr;
};