callback: Remove on_queue_track_add() callback

It no longer has any users.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-04-03 12:03:42 -04:00
parent 67228ef8b1
commit 89a13ff6f7
3 changed files with 0 additions and 10 deletions

View File

@ -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,
};

View File

@ -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;
}

View File

@ -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
*