From fd4251b19318fa6821e3e5c68eaed7e8f875535e Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 17 Feb 2020 14:04:00 +0300 Subject: [PATCH] Remove forgotten moved get_def_by_path --- pyderasn.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pyderasn.py b/pyderasn.py index abb08e8..960256f 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -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 -- 2.44.0