git: 209cfbb4a9f7 - stable/15 - sound: Get rid of unused midi/midi.c defines

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Fri, 09 Jan 2026 23:27:59 UTC
The branch stable/15 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=209cfbb4a9f721748e5d512807107e95b69198d1

commit 209cfbb4a9f721748e5d512807107e95b69198d1
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-01-02 16:56:55 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-01-09 23:27:24 +0000

    sound: Get rid of unused midi/midi.c defines
    
    No functional change intended.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    
    (cherry picked from commit 4a2d1532e84135a50ba8414ceaafc0c3a1bfe94b)
---
 sys/dev/sound/midi/midi.c | 13 -------------
 1 file changed, 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