From f2b98b41063ff42d40de27979b85cc0dafc70be1 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Wed, 21 Oct 2020 09:58:37 +0300 Subject: Remove printing of windowpos/screenpos in MenuButton --- scene/gui/menu_button.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'scene') diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp index 9b1738ec79..d65e98ea46 100644 --- a/scene/gui/menu_button.cpp +++ b/scene/gui/menu_button.cpp @@ -53,17 +53,9 @@ void MenuButton::_unhandled_key_input(Ref p_event) { } void MenuButton::pressed() { - { - Window *w = Object::cast_to(get_viewport()); - if (w && !w->is_embedding_subwindows()) { - print_line("windowpos: " + w->get_position()); - } - } Size2 size = get_size(); Point2 gp = get_screen_position(); - - print_line("screenpos: " + gp); gp.y += get_size().y; popup->set_position(gp); -- cgit v1.2.3