Browse Source

Merge pull request #52431 from dozingpip/patch-1

Remove dead code from Viewport::_gui_input_event
Max Hilbrunner 4 years ago
parent
commit
68563b5760
1 changed files with 0 additions and 7 deletions
  1. 0 7
      scene/main/viewport.cpp

+ 0 - 7
scene/main/viewport.cpp

@@ -1439,13 +1439,6 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
 				//do not steal mouse focus and stuff while a focus mask exists
 				gui.mouse_focus_mask |= 1 << (mb->get_button_index() - 1); //add the button to the mask
 			} else {
-				bool is_handled = false;
-
-				if (is_handled) {
-					set_input_as_handled();
-					return;
-				}
-
 				//Matrix32 parent_xform;
 
 				/*