Commit 1e449d0e authored by Matthias Redies's avatar Matthias Redies
Browse files

script to identify dead code

parent cbd42731
# to be executed in the fleur/ directory
from glob import glob
files = []
cmake_files = glob("**/CMakeLists.txt")
def in_cmake(cmake_files, file):
for cmf in cmake_files:
with open(cmf) as f:
lines = f.readlines()
for l in lines:
if file in l:
return True
return False
for f in files:
if(not(in_cmake(cmake_files, f))):
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment