From 7889a3a9fc2fcf922e07dfe500fafac7cbaf0afd Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Sat, 19 Feb 2011 14:17:03 +0000
Subject: [PATCH] Remove unused variables in wxOSX code.

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 | 2 --
 src/osx/cocoa/utils.mm       | 3 ---
 2 files changed, 5 deletions(-)

diff --git a/src/osx/cocoa/nonownedwnd.mm b/src/osx/cocoa/nonownedwnd.mm
index 145d2518b0..4b73f1e26a 100644
--- a/src/osx/cocoa/nonownedwnd.mm
+++ b/src/osx/cocoa/nonownedwnd.mm
@@ -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;
diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm
index ea7f08edd0..aa32945eda 100644
--- a/src/osx/cocoa/utils.mm
+++ b/src/osx/cocoa/utils.mm
@@ -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
-- 
2.47.2