From bb183345bb7aa96e0e802cef7f796dbe8259164b Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 3 Aug 2020 07:29:53 -0400 Subject: [PATCH] remove obsolete function --- unittest/force-styles/check_tests.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/unittest/force-styles/check_tests.py b/unittest/force-styles/check_tests.py index c65d075a4c..4c253df3a5 100755 --- a/unittest/force-styles/check_tests.py +++ b/unittest/force-styles/check_tests.py @@ -93,25 +93,6 @@ def add_suffix(list,style): else: return style -def check_style(file,dir,pattern,list,name,suffix=False,skip=()): - f = os.path.join(dir, file) - fp = open(f) - text = fp.read() - fp.close() - matches = re.findall(pattern,text,re.MULTILINE) - counter = 0 - for c in list.keys(): - # known undocumented aliases we need to skip - if c in skip: continue - s = c - if suffix: s = add_suffix(list,c) - if not s in matches: - if not list[c]['removed']: - print("%s style entry %s" % (name,s), - "is missing or incomplete in %s" % file) - counter += 1 - return counter - print("Parsing style names from C++ tree in: ",src) for h in headers: