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:
parent
67228ef8b1
commit
89a13ff6f7
|
@ -12,7 +12,6 @@ static void no_op(Queue *) {}
|
||||||
static struct Callbacks callbacks = {
|
static struct Callbacks callbacks = {
|
||||||
.on_pq_removed = no_op,
|
.on_pq_removed = no_op,
|
||||||
|
|
||||||
.on_queue_track_add = no_op,
|
|
||||||
.on_queue_track_del = no_op,
|
.on_queue_track_del = no_op,
|
||||||
.on_queue_track_changed = no_op,
|
.on_queue_track_changed = no_op,
|
||||||
};
|
};
|
||||||
|
|
|
@ -149,7 +149,6 @@ unsigned int Queue :: _add_at(Track *track, unsigned int pos)
|
||||||
_tracks.insert(_tracks.begin() + pos, track);
|
_tracks.insert(_tracks.begin() + pos, track);
|
||||||
_length += track->length();
|
_length += track->length();
|
||||||
_notify->on_track_added(pos);
|
_notify->on_track_added(pos);
|
||||||
get_callbacks()->on_queue_track_add(this, pos);
|
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,14 +24,6 @@ struct Callbacks {
|
||||||
|
|
||||||
/* Queue 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
|
* Called when tracks are removed from a queue
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue