Skip to content

Commit 1813094

Browse files
author
Francois Best
committed
Cleanup
1 parent e3dd227 commit 1813094

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/MIDI.hpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,7 @@ inline bool MidiInterface<SerialPort>::read(Channel inChannel)
509509
template<class SerialPort>
510510
bool MidiInterface<SerialPort>::parse()
511511
{
512-
const byte bytes_available = mSerial.available();
513-
514-
if (bytes_available == 0)
512+
if (mSerial.available() == 0)
515513
// No data available.
516514
return false;
517515

@@ -779,9 +777,6 @@ bool MidiInterface<SerialPort>::parse()
779777
#endif
780778
}
781779
}
782-
783-
// What are our chances to fall here?
784-
return false;
785780
}
786781

787782
// Private method, see midi_Settings.h for documentation

0 commit comments

Comments
 (0)