From bfbc326fd3f8018e2936925a6ea49b5d7d5374e1 Mon Sep 17 00:00:00 2001 From: Andrew Madsen <andrew@mixedinkey.com> Date: Wed, 4 Nov 2015 15:50:32 -0700 Subject: [PATCH] Issue #109: Removed a little dead code in MIKMIDIInputPort. --- Source/MIKMIDIInputPort.m | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Source/MIKMIDIInputPort.m b/Source/MIKMIDIInputPort.m index 7579dfb2..659f5ec5 100644 --- a/Source/MIKMIDIInputPort.m +++ b/Source/MIKMIDIInputPort.m @@ -194,20 +194,6 @@ - (BOOL)commandIsPossibleMSBOf14BitCommand:(MIKMIDICommand *)command return controlChange.controllerNumber < 32; } -- (BOOL)command:(MIKMIDICommand *)lsbCommand isPossibleLSBOfMSBCommand:(MIKMIDICommand *)msbCommand; -{ - if (lsbCommand.commandType != MIKMIDICommandTypeControlChange) return NO; - if (msbCommand.commandType != MIKMIDICommandTypeControlChange) return NO; - - MIKMIDIControlChangeCommand *lsbControlChange = (MIKMIDIControlChangeCommand *)lsbCommand; - MIKMIDIControlChangeCommand *msbControlChange = (MIKMIDIControlChangeCommand *)msbCommand; - - if (msbControlChange.controllerNumber > 31) return NO; - if (lsbControlChange.controllerNumber < 32 || lsbControlChange.controllerNumber > 63) return NO; - - return (lsbControlChange.controllerNumber - msbControlChange.controllerNumber) == 32; -} - - (NSArray *)commandsByCoalescingCommands:(NSArray *)commands { NSMutableArray *coalescedCommands = [commands mutableCopy];