mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Merge pull request #10555 from Rubonnek/removed-unnecessary-returns-and-breaks
Removed unnecessary returns and break statements [ci skip]
This commit is contained in:
commit
bc3c9a3c2a
@ -56,8 +56,6 @@ static String _mktab(int p_level) {
|
||||
static String _typestr(SL::DataType p_type) {
|
||||
|
||||
return ShaderLanguage::get_datatype_name(p_type);
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
static String _prestr(SL::DataPrecision p_pres) {
|
||||
|
@ -210,8 +210,9 @@ public:
|
||||
#ifdef TOOLS_ENABLED
|
||||
ERR_FAIL_INDEX_V(p_idx, arg_names.size(), StringName());
|
||||
return arg_names[p_idx];
|
||||
#endif
|
||||
#else
|
||||
return StringName();
|
||||
#endif
|
||||
}
|
||||
Variant get_default_argument(int p_idx) const {
|
||||
ERR_FAIL_INDEX_V(p_idx, default_arguments.size(), Variant());
|
||||
|
@ -559,8 +559,9 @@ bool GDScript::_update_exports() {
|
||||
|
||||
return changed;
|
||||
|
||||
#endif
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void GDScript::update_exports() {
|
||||
|
@ -585,7 +585,6 @@ Error VisualScriptExpression::_get_token(Token &r_token) {
|
||||
r_token.type = TK_BASIC_TYPE;
|
||||
r_token.value = i;
|
||||
return OK;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -833,7 +833,6 @@ void android_main(struct android_app *app) {
|
||||
if (engine.requested_quit) {
|
||||
engine_term_display(&engine);
|
||||
exit(0);
|
||||
return;
|
||||
}
|
||||
|
||||
// LOGI("end\n");
|
||||
|
@ -1839,8 +1839,6 @@ Control *Control::find_prev_valid_focus() const {
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Control::FocusMode Control::get_focus_mode() const {
|
||||
|
Loading…
Reference in New Issue
Block a user