diff options
Diffstat (limited to 'playlist.go')
| -rw-r--r-- | playlist.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/playlist.go b/playlist.go index 249bad5..becc85e 100644 --- a/playlist.go +++ b/playlist.go @@ -56,3 +56,8 @@ func (pl *Playlist) Adjust(s *Song) { heap.Fix(pl, s.index) llog.DDebug("adjusting song %p in the playlist (%p) -> %v", s, pl, pl) } + +func (pl *Playlist) RemoveSong(s *Song) { + heap.Remove(pl, s.index) + llog.DDebug("removing song %p in the playlist (%p) -> %v", s, pl, pl) +} |
