]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove unused variables in wxOSX code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 19 Feb 2011 14:17:03 +0000 (14:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 19 Feb 2011 14:17:03 +0000 (14:17 +0000)
Simply remove some unused variables that Xcode 4 compiler warned about.

See #12927.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/nonownedwnd.mm
src/osx/cocoa/utils.mm

index 145d2518b0d6e6cf763d73dacb73de8ffd9449ec..4b73f1e26afade85dc9f9a3ade6e3f9f1b3e6bb1 100644 (file)
@@ -784,8 +784,6 @@ void wxNonOwnedWindowCocoaImpl::GetSize( int &width, int &height ) const
 
 void wxNonOwnedWindowCocoaImpl::GetContentArea( int& left, int &top, int &width, int &height ) const
 {
-    NSRect outer = NSMakeRect(100,100,100,100);
-    NSRect content = [NSWindow contentRectForFrameRect:outer styleMask:[m_macWindow styleMask] ];
     NSRect rect = [[m_macWindow contentView] frame];
     left = (int)rect.origin.x;
     top = (int)rect.origin.y;
index ea7f08edd0751d0359825d02cc45b8e776dabbcf..aa32945edad50ecb7bfc3832581979cf34195982 100644 (file)
@@ -328,12 +328,9 @@ wxBitmap wxWindowDCImpl::DoGetAsBitmap(const wxRect *subrect) const
 
     wxSize sz = m_window->GetSize();
 
-    int left = subrect != NULL ? subrect->x : 0 ;
-    int top = subrect != NULL ? subrect->y : 0 ;
     int width = subrect != NULL ? subrect->width : sz.x;
     int height = subrect !=  NULL ? subrect->height : sz.y ;
 
-    NSRect rect = NSMakeRect(left, top, width, height );
     NSView* view = (NSView*) m_window->GetHandle();
     [view lockFocus];
     // we use this method as other methods force a repaint, and this method can be