[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Remove some accidentally committed code in checkIncludes.py



commit 860b9a991879c5be2b32cf98766adf5fdd349d41
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Jun 26 12:04:24 2018 -0400

    Remove some accidentally committed code in checkIncludes.py
---
 scripts/maint/checkIncludes.py | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/scripts/maint/checkIncludes.py b/scripts/maint/checkIncludes.py
index cb3354abf..3c611675e 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(

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits