mirror of https://github.com/lammps/lammps.git
remove obsolete function
This commit is contained in:
parent
90028a3c71
commit
bb183345bb
|
@ -93,25 +93,6 @@ def add_suffix(list,style):
|
||||||
else:
|
else:
|
||||||
return style
|
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)
|
print("Parsing style names from C++ tree in: ",src)
|
||||||
|
|
||||||
for h in headers:
|
for h in headers:
|
||||||
|
|
Loading…
Reference in New Issue