aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2026-01-02 16:56:55 +0000
committerChristos Margiolis <christos@FreeBSD.org>2026-01-02 16:58:06 +0000
commit4a2d1532e84135a50ba8414ceaafc0c3a1bfe94b (patch)
treea5cd54d8eb3051d7d7be4bb0c9281798a0814e74
parent792251295cdf6c3e1cbb1aa6291434539632912f (diff)
sound: Get rid of unused midi/midi.c defines
No functional change intended. Sponsored by: The FreeBSD Foundation MFC after: 1 week
-rw-r--r--sys/dev/sound/midi/midi.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/sound/midi/midi.c b/sys/dev/sound/midi/midi.c
index 542282d81842..e0a782bc9a22 100644
--- a/sys/dev/sound/midi/midi.c
+++ b/sys/dev/sound/midi/midi.c
@@ -185,19 +185,6 @@ midi_uninit(struct snd_midi *m)
return (0);
}
-#ifdef notdef
-static int midi_lengths[] = {2, 2, 2, 2, 1, 1, 2, 0};
-
-#endif /* notdef */
-/* Number of bytes in a MIDI command */
-#define MIDI_LENGTH(d) (midi_lengths[((d) >> 4) & 7])
-#define MIDI_ACK 0xfe
-#define MIDI_IS_STATUS(d) ((d) >= 0x80)
-#define MIDI_IS_COMMON(d) ((d) >= 0xf0)
-
-#define MIDI_SYSEX_START 0xF0
-#define MIDI_SYSEX_END 0xF7
-
/*
* midi_in: process all data until the queue is full, then discards the rest.
* Since midi_in is a state machine, data discards can cause it to get out of