Remove 'ack' command added by Mopidy

This commit is contained in:
Stein Magnus Jodal 2010-06-24 20:00:58 +02:00
parent 1aa5963697
commit 4e29754ce6
2 changed files with 0 additions and 11 deletions

View File

@ -106,13 +106,6 @@ class MpdFrontend(object):
response.append(u'OK')
return response
@handle_pattern(r'^ack$')
def _ack(self):
"""
Always returns an 'ACK'. Not a part of the MPD protocol.
"""
raise MpdNotImplemented
@handle_pattern(r'^disableoutput "(?P<outputid>\d+)"$')
def _audio_output_disableoutput(self, outputid):
"""
@ -1115,9 +1108,6 @@ class MpdFrontend(object):
"""
commands = sorted(list(_commands))
# Added by Mopidy. Not a part of the MPD protocol.
commands.remove('ack')
# Not shown by MPD in its command list
commands.remove('command_list_begin')
commands.remove('command_list_ok_begin')

View File

@ -1197,7 +1197,6 @@ class ReflectionHandlerTest(unittest.TestCase):
self.assert_(u'command: play' in result)
self.assert_(u'command: status' in result)
# Check if the blacklisted commands are not present
self.assert_(u'command: ack' not in result)
self.assert_(u'command: command_list_begin' not in result)
self.assert_(u'command: command_list_ok_begin' not in result)
self.assert_(u'command: command_list_end' not in result)