From 89a13ff6f7db55e0fe2b106623deb4e996cdad5c Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Fri, 3 Apr 2015 12:03:42 -0400 Subject: [PATCH] callback: Remove on_queue_track_add() callback It no longer has any users. 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 27071ced..3ba1dbf4 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_add = 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 d19bffb5..e2c628ec 100644 --- a/core/queue.cpp +++ b/core/queue.cpp @@ -149,7 +149,6 @@ unsigned int Queue :: _add_at(Track *track, unsigned int pos) _tracks.insert(_tracks.begin() + pos, track); _length += track->length(); _notify->on_track_added(pos); - get_callbacks()->on_queue_track_add(this, pos); return pos; } diff --git a/include/core/callback.h b/include/core/callback.h index 98d4a0ba..445be996 100644 --- a/include/core/callback.h +++ b/include/core/callback.h @@ -24,14 +24,6 @@ struct Callbacks { /* Queue callbacks */ - /** - * Called when tracks are added to a queue. - * - * @param queue The queue that was just modified. - * @param row The index of the new track. - */ - void (*on_queue_track_add)(Queue *, unsigned int); - /** * Called when tracks are removed from a queue *