From: Michael Orlitzky Date: Thu, 15 Sep 2022 13:31:27 +0000 (-0400) Subject: bin/djbdns-logparse.py: drop unused _cvt_ip()/_cvt_port() functions. X-Git-Tag: 0.0.1~49 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=b8729e85a2bc8d6dd1162d8489006bef098616cd;p=djbdns-logparse.git bin/djbdns-logparse.py: drop unused _cvt_ip()/_cvt_port() functions. --- 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