changeset 2050:877989334d17

rm unneeded commented-out code Asked Johannes first whether these sections were still relevant...
author corvid <corvid@lavabit.com>
date Thu, 26 May 2011 14:26:59 +0000
parents cf567a0a7b8c
children e1c1d44e56c4
files dw/fltkviewbase.cc
diffstat 1 files changed, 0 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkviewbase.cc	Thu May 26 14:21:52 2011 +0000
+++ b/dw/fltkviewbase.cc	Thu May 26 14:26:59 2011 +0000
@@ -547,21 +547,6 @@
 }
 
 void FltkWidgetView::layout () {
-#if 0
-PORT1.3
-   /**
-    * pass layout to child widgets. This is needed for complex fltk
-    * widgets as TextEditor.
-    * We can't use Group::layout() as that would rearrange the widgets.
-    */
-   for (int i = children () - 1; i >= 0; i--) {
-      Fl_Widget *widget = child (i);
-
-      if (widget->layout_damage ()) {
-         widget->layout ();
-      }
-   }
-#endif
 }
 
 void FltkWidgetView::drawText (core::style::Font *font,
@@ -649,14 +634,6 @@
       translateCanvasYToViewY (allocation->y),
       allocation->width,
       allocation->ascent + allocation->descent);
-
-#if 0
-PORT1.3
-   /* widgets created tiny and later resized need this flag to display */
-   uchar damage = widget->layout_damage ();
-   damage |= LAYOUT_XYWH;
-   widget->layout_damage (damage);
-#endif
 }
 
 void FltkWidgetView::drawFltkWidget (Fl_Widget *widget,