]> git.mxchange.org Git - fba.git/blobdiff - fba/fba.py
Continued:
[fba.git] / fba / fba.py
index c376a0458effb15f2b33f7e509e81013786f6072..da9c693d9cce323802716444da9f94814b670d04 100644 (file)
@@ -284,23 +284,6 @@ def strip_until(software: str, until: str) -> str:
     # DEBUG: print(f"DEBUG: software='{software}' - EXIT!")
     return software
 
-def blacklist.is_blacklisted(domain: str) -> bool:
-    # DEBUG: print(f"DEBUG: domain='{domain}' - CALLED!")
-    if type(domain) != str:
-        raise ValueError(f"Parameter domain[]={type(domain)} is not 'str'")
-    elif domain == "":
-        raise ValueError(f"Parameter 'domain' is empty")
-
-    blacklisted = False
-    for peer in blacklist:
-        # DEBUG: print(f"DEBUG: Checking peer='{peer}' ...")
-        if peer in domain:
-            # DEBUG: print(f"DEBUG: domain='{domain}' is blacklisted.")
-            blacklisted = True
-
-    # DEBUG: print(f"DEBUG: blacklisted='{blacklisted}' - EXIT!")
-    return blacklisted
-
 def remove_pending_error(domain: str):
     if type(domain) != str:
         raise ValueError(f"Parameter domain[]={type(domain)} is not 'str'")