Commit e2a42465 authored by bashi's avatar bashi Committed by Commit bot

idl_compiler: Remove __getstate__ and __setstate__ from IdlArgument

The pickle protocol uses __dict__ if __getstate__ and __setstate__
aren't defined. Using __dict__ is enough for IdlArgument.

BUG=569301

Review-Url: https://codereview.chromium.org/2272283002
Cr-Commit-Position: refs/heads/master@{#414355}
parent f472eb57
...@@ -668,14 +668,6 @@ class IdlArgument(TypedObject): ...@@ -668,14 +668,6 @@ class IdlArgument(TypedObject):
else: else:
raise ValueError('Unrecognized node class: %s' % child_class) raise ValueError('Unrecognized node class: %s' % child_class)
def __getstate__(self):
# FIXME: Return a picklable object which has enough information to
# unpickle.
return {}
def __setstate__(self, state):
pass
def accept(self, visitor): def accept(self, visitor):
visitor.visit_argument(self) visitor.visit_argument(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment