summaryrefslogtreecommitdiff
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-09-12 12:55:53 +0200
committerGitHub <noreply@github.com>2017-09-12 12:55:53 +0200
commitaabbd00284640a4789f96702c134ea40b11b402e (patch)
tree8363659a6551644b0d89401681e2909d5451a119 /editor/property_editor.cpp
parentc5e0e31f5106d7d91dc478af1f86740c74cea824 (diff)
parentb2a38854fdde296fd2d7da139a29b23a18ab494d (diff)
Merge pull request #10908 from hpvb/fix-unused-variables
Fix unused variable warnings
Diffstat (limited to 'editor/property_editor.cpp')
-rw-r--r--editor/property_editor.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index a42fb41ee2..c7a4e1fc3b 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;