diff options
| author | Hein-Pieter van Braam | 2017-09-02 22:32:31 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2017-09-08 15:03:53 +0200 |
| commit | b2a38854fdde296fd2d7da139a29b23a18ab494d (patch) | |
| tree | 951326f4d966e01d4f8d4402dc7beb2252560b7a /editor/property_editor.cpp | |
| parent | d1cb73b47a17de830d9474026ffa7b3587cfbc68 (diff) | |
| download | godot-b2a38854fdde296fd2d7da139a29b23a18ab494d.tar.gz godot-b2a38854fdde296fd2d7da139a29b23a18ab494d.tar.zst godot-b2a38854fdde296fd2d7da139a29b23a18ab494d.zip | |
Fix unused variable warnings
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
Diffstat (limited to 'editor/property_editor.cpp')
| -rw-r--r-- | editor/property_editor.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index a42fb41ee..c7a4e1fc3 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -2275,19 +2275,6 @@ void PropertyEditor::_check_reload_status(const String &p_name, TreeItem *item) } } - if (_might_be_in_instance()) { - - Variant vorig; - Dictionary d = item->get_metadata(0); - int usage = d.has("usage") ? int(int(d["usage"]) & (PROPERTY_USAGE_STORE_IF_NONONE | PROPERTY_USAGE_STORE_IF_NONZERO)) : 0; - - if (_get_instanced_node_original_property(p_name, vorig) || usage) { - Variant v = obj->get(p_name); - - bool has_reload = _is_property_different(v, vorig, usage); - } - } - if (obj->call("property_can_revert", p_name).operator bool()) { has_reload = true; |
