Skip to content

Commit

Permalink
[GDNative] removed godot_string_c_str
Browse files Browse the repository at this point in the history
  • Loading branch information
karroffel committed Nov 20, 2017
1 parent 0865365 commit 33ffdba
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions modules/gdnative/gdnative/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
7 changes: 0 additions & 7 deletions modules/gdnative/gdnative_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 *",
Expand Down
1 change: 0 additions & 1 deletion modules/gdnative/include/gdnative/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 33ffdba

Please sign in to comment.