changeset 1968:d80adb974879

clean up apparently-unnecessary tooltip code I haven't noticed any misbehaviour over these months, anyway.
author corvid <corvid@lavabit.com>
date Tue, 19 Apr 2011 01:12:12 +0000
parents fa525b466aef
children b0a67ac65949
files dw/fltkplatform.cc dw/fltkplatform.hh
diffstat 2 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkplatform.cc	Sat Apr 16 16:43:27 2011 -0300
+++ b/dw/fltkplatform.cc	Tue Apr 19 01:12:12 2011 +0000
@@ -190,17 +190,10 @@
 
 FltkTooltip::FltkTooltip (const char *text) : Tooltip(text)
 {
-   shown = false;
 }
 
 FltkTooltip::~FltkTooltip ()
 {
-#if 0
-PORT1.3
-probably can remember the one from onEnter
-   if (shown)
-      Fl_Tooltip::exit();
-#endif
 }
 
 FltkTooltip *FltkTooltip::create (const char *text)
@@ -214,13 +207,11 @@
 
    Fl_Tooltip::enter_area(widget, widget->x(), widget->y(), widget->w(),
                           widget->h(), str);
-   shown = true;
 }
 
 void FltkTooltip::onLeave()
 {
    Fl_Tooltip::exit(NULL);
-   shown = false;
 }
 
 void FltkTooltip::onMotion()
--- a/dw/fltkplatform.hh	Sat Apr 16 16:43:27 2011 -0300
+++ b/dw/fltkplatform.hh	Tue Apr 19 01:12:12 2011 +0000
@@ -59,7 +59,6 @@
 private:
    FltkTooltip (const char *text);
    ~FltkTooltip ();
-   bool shown;
 public:
    static FltkTooltip *create(const char *text);
    void onEnter();