ALSA: seq: Remove unused snd_seq_queue_client_leave_cells
authorDr. David Alan Gilbert <linux@treblig.org>
Fri, 2 May 2025 23:52:17 +0000 (00:52 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 May 2025 10:36:29 +0000 (12:36 +0200)
The last use of snd_seq_queue_client_leave_cells() was removed in 2018
by
commit 85d59b57be59 ("ALSA: seq: Remove superfluous
snd_seq_queue_client_leave_cells() call")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250502235219.1000429-4-linux@treblig.org
sound/core/seq/seq_queue.c
sound/core/seq/seq_queue.h

index 5df26788dda418ebf9bffc1d289cbaa1fab790b0..10add922323dab0ec055857d608c74b53756b5b6 100644 (file)
@@ -564,22 +564,6 @@ void snd_seq_queue_client_leave(int client)
 
 /*----------------------------------------------------------------*/
 
-/* remove cells from all queues */
-void snd_seq_queue_client_leave_cells(int client)
-{
-       int i;
-       struct snd_seq_queue *q;
-
-       for (i = 0; i < SNDRV_SEQ_MAX_QUEUES; i++) {
-               q = queueptr(i);
-               if (!q)
-                       continue;
-               snd_seq_prioq_leave(q->tickq, client, 0);
-               snd_seq_prioq_leave(q->timeq, client, 0);
-               queuefree(q);
-       }
-}
-
 /* remove cells based on flush criteria */
 void snd_seq_queue_remove_cells(int client, struct snd_seq_remove_events *info)
 {
index 74cc31aacdac15ce3b614cb722712c2944fbdd0b..b81379c9af43e6ac9c099944c0d29a29881effe2 100644 (file)
@@ -66,7 +66,6 @@ void snd_seq_queue_client_leave(int client);
 int snd_seq_enqueue_event(struct snd_seq_event_cell *cell, int atomic, int hop);
 
 /* Remove events */
-void snd_seq_queue_client_leave_cells(int client);
 void snd_seq_queue_remove_cells(int client, struct snd_seq_remove_events *info);
 
 /* return pointer to queue structure for specified id */