Browse Source

Remove some accidentally committed code in checkIncludes.py

Nick Mathewson 6 years ago
parent
commit
860b9a9918
1 changed files with 3 additions and 12 deletions
  1. 3 12
      scripts/maint/checkIncludes.py

+ 3 - 12
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(