]> gitweb.michael.orlitzky.com - djbdns-logparse.git/commitdiff
bin/djbdns-logparse.py: drop unused _cvt_ip()/_cvt_port() functions.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 15 Sep 2022 13:31:27 +0000 (09:31 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 15 Sep 2022 13:31:27 +0000 (09:31 -0400)
bin/djbdns-logparse.py

index 838012445c32027f80f1661929b991cbe28cd185..5067116cce5acec4c12e7bbbf3f337314643dc65 100755 (executable)
@@ -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