remove unused serialize method on AgentCommand

This commit is contained in:
Russell Haering 2014-01-09 15:56:50 -08:00
parent 6cd8af0dd2
commit a2938f9be6

View File

@ -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."""