From 0f102c6d6ed9cbc7199d035acafa91ce4caf7a16 Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Fri, 8 Jul 2011 14:39:39 +0200 Subject: [PATCH] Removed unnecessary -cursorPosition messages --- src/SFML/Window/OSX/SFViewController.mm | 7 ------- src/SFML/Window/OSX/SFWindowController.mm | 6 ------ src/SFML/Window/OSX/WindowImplDelegateProtocol.h | 6 ------ 3 files changed, 19 deletions(-) diff --git a/src/SFML/Window/OSX/SFViewController.mm b/src/SFML/Window/OSX/SFViewController.mm index 2efac8b9..00cd5174 100644 --- a/src/SFML/Window/OSX/SFViewController.mm +++ b/src/SFML/Window/OSX/SFViewController.mm @@ -195,13 +195,6 @@ } -//////////////////////////////////////////////////////// --(NSPoint)cursorPosition -{ - return [myOGLView cursorPositionFromEvent:nil]; -} - - ////////////////////////////////////////////////////////. -(void)setWindowPositionToX:(unsigned int)x Y:(unsigned int)y { diff --git a/src/SFML/Window/OSX/SFWindowController.mm b/src/SFML/Window/OSX/SFWindowController.mm index 4046041c..2e3bac84 100644 --- a/src/SFML/Window/OSX/SFWindowController.mm +++ b/src/SFML/Window/OSX/SFWindowController.mm @@ -287,12 +287,6 @@ [myOGLView setCursorPositionToX:x Y:y]; } -//////////////////////////////////////////////////////// --(NSPoint)cursorPosition -{ - return [myOGLView cursorPositionFromEvent:nil]; -} - ////////////////////////////////////////////////////////. -(void)setWindowPositionToX:(unsigned int)x Y:(unsigned int)y diff --git a/src/SFML/Window/OSX/WindowImplDelegateProtocol.h b/src/SFML/Window/OSX/WindowImplDelegateProtocol.h index 94b29655..e644eb1f 100644 --- a/src/SFML/Window/OSX/WindowImplDelegateProtocol.h +++ b/src/SFML/Window/OSX/WindowImplDelegateProtocol.h @@ -89,12 +89,6 @@ namespace sf { //////////////////////////////////////////////////////////// -(void)setCursorPositionToX:(unsigned int)x Y:(unsigned int)y; -//////////////////////////////////////////////////////////// -/// Get the mouse cursor position (SFML Coordinates). -/// -//////////////////////////////////////////////////////////// --(NSPoint)cursorPosition; - //////////////////////////////////////////////////////////// /// Move the window (not the view if we handle not a window) (SFML Coordinates). ///