aboutsummaryrefslogtreecommitdiff
path: root/dummyBackend.go
diff options
context:
space:
mode:
Diffstat (limited to 'dummyBackend.go')
-rw-r--r--dummyBackend.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/dummyBackend.go b/dummyBackend.go
deleted file mode 100644
index 460dd5e..0000000
--- a/dummyBackend.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package main
-
-import (
- "crypto/sha1"
- "encoding/base64"
-)
-
-type DummyBackend struct{}
-
-func (dummy *DummyBackend) Play(song *Song, player *Player) {
-}
-
-func (dummy *DummyBackend) Search(keyword string) []Song {
-
- s := NewDummySong("Dummy Mc Crashtest", "exactly "+keyword)
- return []Song{s}
-}
-
-func NewDummySong(title, artist string) Song {
- h := sha1.New()
- h.Write([]byte(title))
- h.Write([]byte(artist))
- return NewSong(title, artist, "dummy", base64.URLEncoding.EncodeToString(h.Sum(nil)))
-}