Skip to content

Commit

Permalink
Remove more unnecessary methods
Browse files Browse the repository at this point in the history
  • Loading branch information
judahrand committed Jan 19, 2020
1 parent a7b777a commit 6005c64
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions singer/bookmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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:
Expand Down

0 comments on commit 6005c64

Please sign in to comment.