summaryrefslogtreecommitdiffstats
path: root/editor/action_map_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-04 11:36:13 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-04 11:36:13 +0100
commitf475c91081e2b5f4ec9586481f08de62d47b1303 (patch)
tree4bf936f68d71792234f6845be319c32bf2538844 /editor/action_map_editor.cpp
parent191c8ed12f624ec97b650b2726fed4e8c4bcf04c (diff)
downloadredot-engine-f475c91081e2b5f4ec9586481f08de62d47b1303.tar.gz
Fix -Wunused-but-set-variable warnings from Emscripten 3.1.20
Diffstat (limited to 'editor/action_map_editor.cpp')
-rw-r--r--editor/action_map_editor.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/editor/action_map_editor.cpp b/editor/action_map_editor.cpp
index 9b1ff78727..3b9d6c18eb 100644
--- a/editor/action_map_editor.cpp
+++ b/editor/action_map_editor.cpp
@@ -29,6 +29,7 @@
/*************************************************************************/
#include "editor/action_map_editor.h"
+
#include "editor/editor_scale.h"
#include "editor/event_listener_line_edit.h"
#include "editor/input_event_configuration_dialog.h"
@@ -395,15 +396,9 @@ void ActionMapEditor::update_action_list(const Vector<ActionInfo> &p_action_info
action_tree->clear();
TreeItem *root = action_tree->create_item();
- int uneditable_count = 0;
-
for (int i = 0; i < actions_cache.size(); i++) {
ActionInfo action_info = actions_cache[i];
- if (!action_info.editable) {
- uneditable_count++;
- }
-
const Array events = action_info.action["events"];
if (!_should_display_action(action_info.name, events)) {
continue;