From 0c41d93035f03aa979d5e5ec98e60a40fb19d356 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Wed, 14 Feb 2024 21:13:17 +0100
Subject: [PATCH] MAINT: remove unneeded functions

---
 src/caoscrawler/crawl.py | 31 -------------------------------
 1 file changed, 31 deletions(-)

diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py
index 8164c366..c6ec7e91 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())
-- 
GitLab