From 46d7217fa1ce44942ac3039f563789f814bd55cc Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Sun, 16 Aug 2015 01:15:39 +0100 Subject: [PATCH] Removed unneeded get function in SongQueue --- songqueue.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/songqueue.go b/songqueue.go index d00f771..f1bdc1c 100644 --- a/songqueue.go +++ b/songqueue.go @@ -77,14 +77,6 @@ func (q *SongQueue) Traverse(visit func(i int, s Song)) { } } -// Gets the song at a specific point in the queue -func (q *SongQueue) Get(i int) (Song, error) { - if q.Len() > i+1 { - return q.queue[i], nil - } - return nil, errors.New("Out of Bounds") -} - // OnSongFinished event. Deletes Song that just finished playing, then queues the next Song (if exists). func (q *SongQueue) OnSongFinished() { resetOffset, _ := time.ParseDuration(fmt.Sprintf("%ds", 0))