From a2938f9be62426e32d7ba12662f7746557c27f76 Mon Sep 17 00:00:00 2001 From: Russell Haering Date: Thu, 9 Jan 2014 15:56:50 -0800 Subject: [PATCH] remove unused serialize method on AgentCommand --- teeth_agent/api.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/teeth_agent/api.py b/teeth_agent/api.py index 066d0d9e4..97380bdfd 100644 --- a/teeth_agent/api.py +++ b/teeth_agent/api.py @@ -14,15 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. """ -import collections - from teeth_rest import component -from teeth_rest import encoding from teeth_rest import errors from teeth_rest import responses -class AgentCommand(encoding.Serializable): +class AgentCommand(object): def __init__(self, name, params): self.name = name self.params = params @@ -40,13 +37,6 @@ class AgentCommand(encoding.Serializable): return cls(obj['name'], obj['params']) - def serialize(self, view): - """Turn a command into a dictionary.""" - return collections.OrderedDict([ - ('name', self.name), - ('params', self.params), - ]) - class TeethAgentAPI(component.APIComponent): """The primary Teeth Agent API."""