From b8729e85a2bc8d6dd1162d8489006bef098616cd Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 15 Sep 2022 09:31:27 -0400 Subject: [PATCH] bin/djbdns-logparse.py: drop unused _cvt_ip()/_cvt_port() functions. --- bin/djbdns-logparse.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bin/djbdns-logparse.py b/bin/djbdns-logparse.py index 8380124..5067116 100755 --- a/bin/djbdns-logparse.py +++ b/bin/djbdns-logparse.py @@ -101,12 +101,6 @@ def convert_ip(ip : str): return ":".join([ip[(4*i) : (4*i+4)] for i in range(8)]) -def _cvt_ip(match): - return convert_ip(match.group(1)) - -def _cvt_port(match): - return ":" + str(int(match.group(1), 16)) - def decode_client(words, i): chunks = words[i].split(":") if len(chunks) == 2: # ip:port -- 2.44.2