]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Remove forgotten moved get_def_by_path
authorSergey Matveev <stargrave@stargrave.org>
Mon, 17 Feb 2020 11:04:00 +0000 (14:04 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 17 Feb 2020 11:04:00 +0000 (14:04 +0300)
pyderasn.py

index abb08e89dce06565635402782039f40c210a5d2d..960256f1e38a1e191a384a9fc8eaa40f0cd6ecb7 100755 (executable)
@@ -5816,19 +5816,6 @@ class Any(Obj):
 # ASN.1 constructed types
 ########################################################################
 
-def get_def_by_path(defines_by_path, sub_decode_path):
-    """Get define by decode path
-    """
-    for path, define in defines_by_path:
-        if len(path) != len(sub_decode_path):
-            continue
-        for p1, p2 in zip(path, sub_decode_path):
-            if (not p1 is any) and (p1 != p2):
-                break
-        else:
-            return define
-
-
 def abs_decode_path(decode_path, rel_path):
     """Create an absolute decode path from current and relative ones