remove unused serialize method on AgentCommand
This commit is contained in:
parent
6cd8af0dd2
commit
a2938f9be6
@ -14,15 +14,12 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import collections
|
|
||||||
|
|
||||||
from teeth_rest import component
|
from teeth_rest import component
|
||||||
from teeth_rest import encoding
|
|
||||||
from teeth_rest import errors
|
from teeth_rest import errors
|
||||||
from teeth_rest import responses
|
from teeth_rest import responses
|
||||||
|
|
||||||
|
|
||||||
class AgentCommand(encoding.Serializable):
|
class AgentCommand(object):
|
||||||
def __init__(self, name, params):
|
def __init__(self, name, params):
|
||||||
self.name = name
|
self.name = name
|
||||||
self.params = params
|
self.params = params
|
||||||
@ -40,13 +37,6 @@ class AgentCommand(encoding.Serializable):
|
|||||||
|
|
||||||
return cls(obj['name'], obj['params'])
|
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):
|
class TeethAgentAPI(component.APIComponent):
|
||||||
"""The primary Teeth Agent API."""
|
"""The primary Teeth Agent API."""
|
||||||
|
Loading…
Reference in New Issue
Block a user