Removed unnecessary keyword, fix comment style

The privacy here is already private
This commit is contained in:
Craig-Stoneham 2020-09-28 11:22:10 +01:00
parent 2d14c7cb69
commit 46519ba52c
2 changed files with 1 additions and 2 deletions

View File

@ -128,7 +128,7 @@ void InputMap::action_add_event(const StringName &p_action, const Ref<InputEvent
ERR_FAIL_COND_MSG(p_event.is_null(), "It's not a reference to a valid InputEvent object."); ERR_FAIL_COND_MSG(p_event.is_null(), "It's not a reference to a valid InputEvent object.");
ERR_FAIL_COND_MSG(!input_map.has(p_action), "Request for nonexistent InputMap action '" + String(p_action) + "'."); ERR_FAIL_COND_MSG(!input_map.has(p_action), "Request for nonexistent InputMap action '" + String(p_action) + "'.");
if (_find_event(input_map[p_action], p_event)) { if (_find_event(input_map[p_action], p_event)) {
return; //already gots return; // Already addded.
} }
input_map[p_action].inputs.push_back(p_event); input_map[p_action].inputs.push_back(p_event);

View File

@ -44,7 +44,6 @@ class EditorPlugin;
class EditorSettings : public Resource { class EditorSettings : public Resource {
GDCLASS(EditorSettings, Resource); GDCLASS(EditorSettings, Resource);
private:
_THREAD_SAFE_CLASS_ _THREAD_SAFE_CLASS_
public: public: