aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-09-29 16:29:11 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2015-09-29 16:29:11 +1000
commit2ca46b8b36d14978ee5e724a429f496d9b584823 (patch)
tree5ab644ac05f38e8fed516a792b88eee3e5380d30 /cocoa/ScintillaView.mm
parent8a45978202a01828a7e0b3240c101d8949a7064e (diff)
downloadscintilla-mirror-2ca46b8b36d14978ee5e724a429f496d9b584823.tar.gz
Mark unused parameters in Objective-C methods with a pragma.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index da16899eb..180a7542e 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -404,6 +404,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor)
- (NSRect) firstRectForCharacterRange: (NSRange) aRange actualRange: (NSRangePointer) actualRange
{
+#pragma unused(actualRange)
const NSRange posRange = mOwner.backend->PositionsFromCharacters(aRange);
NSRect rect;
@@ -737,6 +738,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor)
- (NSDragOperation)draggingSession: (NSDraggingSession *) session
sourceOperationMaskForDraggingContext: (NSDraggingContext) context
{
+#pragma unused(session)
switch(context)
{
case NSDraggingContextOutsideApplication:
@@ -751,12 +753,14 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context
- (void)draggingSession:(NSDraggingSession *)session
movedToPoint:(NSPoint)screenPoint
{
+#pragma unused(session, screenPoint)
}
- (void)draggingSession:(NSDraggingSession *)session
endedAtPoint:(NSPoint)screenPoint
operation:(NSDragOperation)operation
{
+#pragma unused(session, screenPoint)
if (operation == NSDragOperationDelete)
{
mOwner.backend->WndProc(SCI_CLEAR, 0, 0);
@@ -1310,6 +1314,7 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context
*/
- (void) scrollerAction: (id) sender
{
+#pragma unused(sender)
mBackend->UpdateForScroll();
}