From 4e29754ce6511bfa53d51cb3567a3408ea923c99 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Thu, 24 Jun 2010 20:00:58 +0200 Subject: [PATCH] Remove 'ack' command added by Mopidy --- mopidy/mpd/frontend.py | 10 ---------- tests/mpd/frontend_test.py | 1 - 2 files changed, 11 deletions(-) diff --git a/mopidy/mpd/frontend.py b/mopidy/mpd/frontend.py index 494232df..39bd1eeb 100644 --- a/mopidy/mpd/frontend.py +++ b/mopidy/mpd/frontend.py @@ -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\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') diff --git a/tests/mpd/frontend_test.py b/tests/mpd/frontend_test.py index a52b1131..a6faab5d 100644 --- a/tests/mpd/frontend_test.py +++ b/tests/mpd/frontend_test.py @@ -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)