# HG changeset patch # User Drew Perttula # Date 2014-06-15 07:42:51 # Node ID 65405b3311f64a9cdcb2d398c6774b783743fba1 # Parent a296d842d0dad591a6a4907692d1715dc3be16a7 dead code Ignore-this: 19fc9344a2ffe34598ccccd5738bd1a6 diff --git a/light9/curvecalc/musicaccess.py b/light9/curvecalc/musicaccess.py --- a/light9/curvecalc/musicaccess.py +++ b/light9/curvecalc/musicaccess.py @@ -1,4 +1,3 @@ -import restkit import json from louie import dispatcher from rdflib import URIRef @@ -76,11 +75,3 @@ class Music: self.player.request("POST", networking.musicPlayer.path("seekPlayOrPause"), bodyProducer=StringProducer(json.dumps({"t" : t}))) - -def currentlyPlayingSong(): - """ask the music player what song it's on""" - player = restkit.Resource(networking.musicPlayer.url) - t = json.loads(player.get("time").body_string()) - if t['song'] is None: - raise ValueError("music player is not playing any song") - return URIRef(t['song'])