diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py index 8164c366a711f29d656596a9630c2d107ad02163..c6ec7e91a405b147215b7e0e64c381cb0c229a01 100644 --- a/src/caoscrawler/crawl.py +++ b/src/caoscrawler/crawl.py @@ -254,27 +254,6 @@ class TreatedRecordLookUp(): self._missing: dict[int, db.Entity] = {} self._existing: dict[int, db.Entity] = {} - # TODO is this needed? - def by_path(self, path): - if path in self._path_look_up: - return self._path_look_up[path] - else: - return None - - # TODO is this needed? - def by_ID(self, eid): - if eid in self._id_look_up: - return self._id_look_up[path] - else: - return None - - # TODO is this needed? - def by_identifiable(self, identifiable): - if identifiable.get_representation() in self._id_look_up: - return self._id_look_up[identifiable.get_representation()] - else: - return None - def add(self, record: db.Entity, identifiable: Optional[Identifiable] = None): """ Add a Record that was treated, such that it is contained in the internal look up dicts @@ -326,16 +305,6 @@ class TreatedRecordLookUp(): else: return None - # TODO is this needed? - def is_missing(self, record: db.Entity): - """ Check whether this Record is missing on the remote server """ - return id(record) in self._missing - - # TODO is this needed? - def is_existing(self, record: db.Entity): - """ Check whether this Record is existing on the remote server """ - return id(record) in self._existing - def get_missing_list(self): """ Return all Records that are missing in the remote server """ return list(self._missing.values())