Skip to content

Commit

Permalink
Issue #109: Removed a little dead code in MIKMIDIInputPort.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Madsen committed Nov 4, 2015
1 parent 68467f8 commit bfbc326
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Source/MIKMIDIInputPort.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit bfbc326

Please sign in to comment.