From: Michael Tremer Date: Fri, 10 May 2024 16:53:22 +0000 (+0100) Subject: unbound-dhcp-leases-bridge: Remove unused functions and module imports X-Git-Tag: v2.29-core188~10^2~86^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2a389e9d4fd731357b4f7400d8d7ef4f313ea4b;p=ipfire-2.x.git unbound-dhcp-leases-bridge: Remove unused functions and module imports Signed-off-by: Michael Tremer --- diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge index fb4c50e1ee..3972a45c62 100644 --- a/config/unbound/unbound-dhcp-leases-bridge +++ b/config/unbound/unbound-dhcp-leases-bridge @@ -37,7 +37,6 @@ import subprocess import sys import tempfile import threading -import time LOCAL_TTL = 60 @@ -66,20 +65,6 @@ def setup_logging(daemon=True, loglevel=logging.INFO): return log -def ip_address_to_reverse_pointer(address): - parts = address.split(".") - parts.reverse() - - return "%s.in-addr.arpa" % ".".join(parts) - -def reverse_pointer_to_ip_address(rr): - parts = rr.split(".") - - # Only take IP address part - parts = reversed(parts[0:4]) - - return ".".join(parts) - class UnboundDHCPLeasesBridge(object): def __init__(self, dhcp_leases_file, fix_leases_file, unbound_leases_file, hosts_file, socket_path): self.leases_file = dhcp_leases_file