Skip to content

Commit

Permalink
Remove unused to_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
amarjandu authored and jessebrennan committed Jun 17, 2021
1 parent 58f96b3 commit b4b8beb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/azul/indexer/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from dataclasses import (
dataclass,
field,
fields,
)
from enum import (
Enum,
Expand Down Expand Up @@ -480,9 +479,6 @@ def to_json(self) -> JSON:
return dict(entity_id=self.coordinates.entity.entity_id,
contents=self.contents)

def to_dict(self) -> JSON:
return {f.name: getattr(self, f.name) for f in fields(self)}

@classmethod
def _from_json(cls, document: JSON) -> Mapping[str, Any]:
return {}
Expand Down

0 comments on commit b4b8beb

Please sign in to comment.