From 8cc48aa7990e46badb3c44f817ca4a83c3db8f37 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Fri, 3 Apr 2015 12:29:20 -0400 Subject: [PATCH] callbacks: Remove on_pq_track_deleted() It's been replaced with a function in the QNotifier class. Signed-off-by: Anna Schumaker --- core/callback.cpp | 1 - core/queue.cpp | 1 - include/core/callback.h | 8 -------- 3 files changed, 10 deletions(-) diff --git a/core/callback.cpp b/core/callback.cpp index 3ba1dbf4..9327ac1a 100644 --- a/core/callback.cpp +++ b/core/callback.cpp @@ -12,7 +12,6 @@ static void no_op(Queue *) {} static struct Callbacks callbacks = { .on_pq_removed = no_op, - .on_queue_track_del = no_op, .on_queue_track_changed = no_op, }; diff --git a/core/queue.cpp b/core/queue.cpp index 9f401a99..f0863060 100644 --- a/core/queue.cpp +++ b/core/queue.cpp @@ -166,7 +166,6 @@ void Queue :: del(unsigned int index) _length -= _tracks[index]->length(); _tracks.erase(_tracks.begin() + index); _notify->on_track_removed(index); - get_callbacks()->on_queue_track_del(this, index); } void Queue :: del(Track *track) diff --git a/include/core/callback.h b/include/core/callback.h index 445be996..e54b3230 100644 --- a/include/core/callback.h +++ b/include/core/callback.h @@ -24,14 +24,6 @@ struct Callbacks { /* Queue callbacks */ - /** - * Called when tracks are removed from a queue - * - * @param queue The queue that was just modified. - * @param row The former index of the track. - */ - void (*on_queue_track_del)(Queue *, unsigned int); - /** * Called when a track's metadata changes. *