From 33ffdba553e90471150bd84067c88a79e874a2aa Mon Sep 17 00:00:00 2001 From: Karroffel <therzog@mail.de> Date: Sun, 19 Nov 2017 23:45:01 +0100 Subject: [PATCH] [GDNative] removed godot_string_c_str --- modules/gdnative/gdnative/string.cpp | 5 ----- modules/gdnative/gdnative_api.json | 7 ------- modules/gdnative/include/gdnative/string.h | 1 - 3 files changed, 13 deletions(-) diff --git a/modules/gdnative/gdnative/string.cpp b/modules/gdnative/gdnative/string.cpp index 781b8754bd52..67a037736c95 100644 --- a/modules/gdnative/gdnative/string.cpp +++ b/modules/gdnative/gdnative/string.cpp @@ -89,11 +89,6 @@ wchar_t GDAPI godot_string_operator_index_const(const godot_string *p_self, cons return self->operator[](p_idx); } -const char GDAPI *godot_string_c_str(const godot_string *p_self) { - const String *self = (const String *)p_self; - return self->utf8().get_data(); -} - const wchar_t GDAPI *godot_string_unicode_str(const godot_string *p_self) { const String *self = (const String *)p_self; return self->c_str(); diff --git a/modules/gdnative/gdnative_api.json b/modules/gdnative/gdnative_api.json index 877c65dfb976..0a1c5095d4ef 100644 --- a/modules/gdnative/gdnative_api.json +++ b/modules/gdnative/gdnative_api.json @@ -4361,13 +4361,6 @@ ["const godot_int", "p_idx"] ] }, - { - "name": "godot_string_c_str", - "return_type": "const char *", - "arguments": [ - ["const godot_string *", "p_self"] - ] - }, { "name": "godot_string_unicode_str", "return_type": "const wchar_t *", diff --git a/modules/gdnative/include/gdnative/string.h b/modules/gdnative/include/gdnative/string.h index cca3eb267239..10358ceade54 100644 --- a/modules/gdnative/include/gdnative/string.h +++ b/modules/gdnative/include/gdnative/string.h @@ -68,7 +68,6 @@ void GDAPI godot_string_get_data(const godot_string *p_self, char *p_dest, int * wchar_t GDAPI *godot_string_operator_index(godot_string *p_self, const godot_int p_idx); wchar_t GDAPI godot_string_operator_index_const(const godot_string *p_self, const godot_int p_idx); -const char GDAPI *godot_string_c_str(const godot_string *p_self); const wchar_t GDAPI *godot_string_unicode_str(const godot_string *p_self); godot_bool GDAPI godot_string_operator_equal(const godot_string *p_self, const godot_string *p_b);