summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-02-15 20:35:58 +0000
committerManolo Gouy <Manolo>2010-02-15 20:35:58 +0000
commit5a768969085c5723caa99c7c5dd498d59fdd822d (patch)
tree8d7606c5091dc0306801c3d83f79b3ec6dc75a0f /src
parentfb1b0fab0a422e9ff8807bed12ae09abb4f0d975 (diff)
removed unused variables
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 46b9fad24..d0da4dbfb 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1,7 +1,7 @@
//
// "$Id: Fl_cocoa.mm 6971 2009-04-13 07:32:01Z matt $"
//
-// MacOS specific code for the Fast Light Tool Kit (FLTK).
+// MacOS-Cocoa specific code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 by Bill Spitzak and others.
//
@@ -1908,11 +1908,6 @@ void Fl_X::make(Fl_Window* w)
static int xyPos = 100;
if ( w->parent() ) { // create a subwindow
Fl_Group::current(0);
- Rect wRect;
- wRect.top = w->y();
- wRect.left = w->x();
- wRect.bottom = w->y() + w->h(); if (wRect.bottom<=wRect.top) wRect.bottom = wRect.top+1;
- wRect.right = w->x() + w->w(); if (wRect.right<=wRect.left) wRect.right = wRect.left+1;
// our subwindow needs this structure to know about its clipping.
Fl_X* x = new Fl_X;
x->other_xid = 0;
@@ -2012,12 +2007,6 @@ void Fl_X::make(Fl_Window* w)
while (w->parent()) w = w->window(); // todo: this code does not make any sense! (w!=w??)
}
- Rect wRect;
- wRect.top = w->y();
- wRect.left = w->x();
- wRect.bottom = w->y() + w->h(); if (wRect.bottom<=wRect.top) wRect.bottom = wRect.top+1;
- wRect.right = w->x() + w->w(); if (wRect.right<=wRect.left) wRect.right = wRect.left+1;
-
const char *name = w->label();
Fl_X* x = new Fl_X;