From f5dfd9afb7c730b89f2598dcb4d022eec335fb66 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sun, 7 Nov 2010 15:52:58 +0000 Subject: [PATCH] Removed unused function gui2::event::tdistributor::show_help_popup. --- src/gui/auxiliary/event/distributor.cpp | 26 ------------------------- src/gui/auxiliary/event/distributor.hpp | 12 ------------ 2 files changed, 38 deletions(-) diff --git a/src/gui/auxiliary/event/distributor.cpp b/src/gui/auxiliary/event/distributor.cpp index f2a4a434b7b..9ce86013e57 100644 --- a/src/gui/auxiliary/event/distributor.cpp +++ b/src/gui/auxiliary/event/distributor.cpp @@ -701,32 +701,6 @@ void tdistributor::remove_tooltip() do_remove_tooltip(); } -void tdistributor::show_help_popup(const t_string& message, const unsigned timeout) -{ - DBG_GUI_E << "Event: show help popup.\n"; - - if(help_popup_) { - DBG_GUI_E << "Help is already there, bailing out.\n"; - return; - } - - if(tooltip_) { - remove_tooltip(); - } - - // Kill hover events FIXME not documented. - had_hover_ = true; - hover_pending_ = false; - - help_popup_ = mouse_focus_; - - do_show_help_popup(tpoint(mouse_x_, mouse_y_), message); - - if(timeout) { - SDL_AddTimer(timeout, popup_callback, 0); - } -} - void tdistributor::remove_help_popup() { if(!help_popup_) { diff --git a/src/gui/auxiliary/event/distributor.hpp b/src/gui/auxiliary/event/distributor.hpp index 614b488e799..81dee41cb04 100644 --- a/src/gui/auxiliary/event/distributor.hpp +++ b/src/gui/auxiliary/event/distributor.hpp @@ -284,18 +284,6 @@ public: /** Removes the currently shown tooltip. */ void remove_tooltip(); - /** - * Shows a help message. - * - * A help message is like a tooltip, but in general contains more info and - * the user needs to trigger it (most of the time with the F1 button). - * - * @param message The message to show. - * @param timeout The time the help message is shown, 0 means - * forever. - */ - void show_help_popup(const t_string& message, const unsigned timeout); - /** Removes the currently show tooltip. */ void remove_help_popup();