From b4b8beb4e406007406b8436ade37b1503e6a834a Mon Sep 17 00:00:00 2001 From: amar jandu Date: Mon, 24 May 2021 08:34:32 -0700 Subject: [PATCH] Remove unused to_dict --- src/azul/indexer/document.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/azul/indexer/document.py b/src/azul/indexer/document.py index c556ba93f..6799c92de 100644 --- a/src/azul/indexer/document.py +++ b/src/azul/indexer/document.py @@ -5,7 +5,6 @@ from dataclasses import ( dataclass, field, - fields, ) from enum import ( Enum, @@ -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 {}