git: fa20737ed1b7 - main - sound: Remove unused mpu_if methods

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Sun, 06 Jul 2025 13:09:04 UTC
The branch main has been updated by christos:

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

commit fa20737ed1b7973062ec503b43857d7af0443070
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2025-07-06 13:08:30 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2025-07-06 13:08:30 +0000

    sound: Remove unused mpu_if methods
    
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D50612
---
 sys/dev/sound/midi/mpu401.c | 17 -----------------
 sys/dev/sound/midi/mpu_if.m | 11 -----------
 2 files changed, 28 deletions(-)

diff --git a/sys/dev/sound/midi/mpu401.c b/sys/dev/sound/midi/mpu401.c
index 2be285bc0040..9dc9c4d27750 100644
--- a/sys/dev/sound/midi/mpu401.c
+++ b/sys/dev/sound/midi/mpu401.c
@@ -88,8 +88,6 @@ static int mpu401_minqsize(struct snd_midi *, void *);
 static int mpu401_moutqsize(struct snd_midi *, void *);
 static void mpu401_mcallback(struct snd_midi *, void *, int);
 static void mpu401_mcallbackp(struct snd_midi *, void *, int);
-static const char *mpu401_mdescr(struct snd_midi *, void *, int);
-static const char *mpu401_mprovider(struct snd_midi *, void *);
 
 static kobj_method_t mpu401_methods[] = {
 	KOBJMETHOD(mpu_init, mpu401_minit),
@@ -98,8 +96,6 @@ static kobj_method_t mpu401_methods[] = {
 	KOBJMETHOD(mpu_outqsize, mpu401_moutqsize),
 	KOBJMETHOD(mpu_callback, mpu401_mcallback),
 	KOBJMETHOD(mpu_callbackp, mpu401_mcallbackp),
-	KOBJMETHOD(mpu_descr, mpu401_mdescr),
-	KOBJMETHOD(mpu_provider, mpu401_mprovider),
 	KOBJMETHOD_END
 };
 
@@ -281,16 +277,3 @@ mpu401_mcallbackp(struct snd_midi *sm, void *arg, int flags)
 /*	printf("mpu401_callbackp\n"); */
 	mpu401_mcallback(sm, arg, flags);
 }
-
-static const char *
-mpu401_mdescr(struct snd_midi *sm, void *arg, int verbosity)
-{
-
-	return "descr mpu401";
-}
-
-static const char *
-mpu401_mprovider(struct snd_midi *m, void *arg)
-{
-	return "provider mpu401";
-}
diff --git a/sys/dev/sound/midi/mpu_if.m b/sys/dev/sound/midi/mpu_if.m
index b7cb586c5dd0..835d887f703a 100644
--- a/sys/dev/sound/midi/mpu_if.m
+++ b/sys/dev/sound/midi/mpu_if.m
@@ -56,17 +56,6 @@ METHOD void callback {
 	int	_flags;
 };
 
-METHOD const char * provider {
-	struct snd_midi *_kobj;
-	void   *_cookie;
-};
-
-METHOD const char * descr {
-	struct snd_midi *_kobj;
-	void   *_cookie;
-	int	_verbosity;
-};
-
 METHOD int uninit {
 	struct snd_midi *_kobj;
 	void   *_cookie;