The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=9a138abb21e17cabb8823f2cefab983d2926d82b
commit 9a138abb21e17cabb8823f2cefab983d2926d82b Author: Christos Margiolis <chris...@freebsd.org> AuthorDate: 2025-07-06 13:08:42 +0000 Commit: Christos Margiolis <chris...@freebsd.org> CommitDate: 2025-07-06 13:08:42 +0000 sound: Remove unused midi_cmdname() Sponsored by: The FreeBSD Foundation Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D50616 --- sys/dev/sound/midi/midi.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/sys/dev/sound/midi/midi.c b/sys/dev/sound/midi/midi.c index d1f06028035e..6753f864ba9c 100644 --- a/sys/dev/sound/midi/midi.c +++ b/sys/dev/sound/midi/midi.c @@ -797,40 +797,6 @@ midi_poll(struct cdev *i_dev, int events, struct thread *td) return (revents); } -#ifdef notdef -static char * -midi_cmdname(int cmd) -{ - static struct { - int cmd; - char *name; - } *tab, cmdtab_midiioctl[] = { -#define A(x) {x, ## x} - /* - * Once we have some real IOCTLs define, the following will - * be relavant. - * - * A(SNDCTL_MIDI_PRETIME), A(SNDCTL_MIDI_MPUMODE), - * A(SNDCTL_MIDI_MPUCMD), A(SNDCTL_SYNTH_INFO), - * A(SNDCTL_MIDI_INFO), A(SNDCTL_SYNTH_MEMAVL), - * A(SNDCTL_FM_LOAD_INSTR), A(SNDCTL_FM_4OP_ENABLE), - * A(MIOSPASSTHRU), A(MIOGPASSTHRU), A(AIONWRITE), - * A(AIOGSIZE), A(AIOSSIZE), A(AIOGFMT), A(AIOSFMT), - * A(AIOGMIX), A(AIOSMIX), A(AIOSTOP), A(AIOSYNC), - * A(AIOGCAP), - */ -#undef A - { - -1, "unknown" - }, - }; - - for (tab = cmdtab_midiioctl; tab->cmd != cmd && tab->cmd != -1; tab++); - return tab->name; -} - -#endif /* notdef */ - /* * Single point of midi destructions. */