From 6005c6408381ecc0955dbc2fc1963d83913fd3b1 Mon Sep 17 00:00:00 2001 From: Judah Rand Date: Sun, 19 Jan 2020 20:18:18 +0000 Subject: [PATCH] Remove more unnecessary methods --- singer/bookmarks.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/singer/bookmarks.py b/singer/bookmarks.py index 3c93e60..864b603 100644 --- a/singer/bookmarks.py +++ b/singer/bookmarks.py @@ -24,11 +24,6 @@ def __eq__(self, other: Any) -> bool: def bookmarks(self) -> Dict: return self._bookmarks - @classmethod - def load(cls, filename: str) -> "State": - with open(filename) as fp: # pylint: disable=invalid-name - return State.from_dict(json.load(fp)) - @classmethod def from_dict(cls, data: Dict) -> "State": return State( @@ -42,9 +37,6 @@ def to_dict(self) -> Dict: state["currently_syncing"] = self.get_currently_syncing() return state - def dump(self) -> None: - json.dump(self.to_dict(), sys.stdout, indent=2) - def _ensure_bookmark_path(self, path: Sequence) -> None: submap = self.bookmarks for path_component in path: