summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-26 12:04:24 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-26 12:04:24 -0400
commit860b9a991879c5be2b32cf98766adf5fdd349d41 (patch)
tree87175db7b619de9fc35669aa3ed2210624a29872 /scripts
parent58fc42fdcedc9c0446e709d98eaf7c53c464750a (diff)
downloadtor-860b9a991879c5be2b32cf98766adf5fdd349d41.tar.gz
tor-860b9a991879c5be2b32cf98766adf5fdd349d41.zip
Remove some accidentally committed code in checkIncludes.py
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/checkIncludes.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/scripts/maint/checkIncludes.py b/scripts/maint/checkIncludes.py
index cb3354abf3..3c611675e4 100755
--- a/scripts/maint/checkIncludes.py
+++ b/scripts/maint/checkIncludes.py
@@ -58,21 +58,12 @@ def load_include_rules(fname):
result.addPattern(line)
return result
-MDD = "--mdd" in sys.argv[1:]
-
-if MDD:
- print(
-
for dirpath, dirnames, fnames in os.walk("src"):
if ".may_include" in fnames:
rules = load_include_rules(os.path.join(dirpath, RULES_FNAME))
- if MDD:
- dp = dirpath.replace("src/","")
- rules.dump_mdd(dp)
- else:
- for fname in fnames:
- if fname_is_c(fname):
- rules.applyToFile(os.path.join(dirpath,fname))
+ for fname in fnames:
+ if fname_is_c(fname):
+ rules.applyToFile(os.path.join(dirpath,fname))
if trouble:
err(