summaryrefslogtreecommitdiff
path: root/bundler/actions.py
diff options
context:
space:
mode:
authorTomas Touceda <chiiph@leap.se>2014-07-16 16:19:19 -0400
committerTomás Touceda <chiiph@leap.se>2014-09-02 15:36:47 -0300
commited95723fe8599c20eeebd228e1bb4f975ffefc23 (patch)
tree4a620924752a16da4b5c4f364bd7606f012909cc /bundler/actions.py
parent02ca2e05a34a055e4559bdf1424080a643731f50 (diff)
Remove unused code
Diffstat (limited to 'bundler/actions.py')
-rw-r--r--bundler/actions.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/bundler/actions.py b/bundler/actions.py
index df96c92..9b6b12a 100644
--- a/bundler/actions.py
+++ b/bundler/actions.py
@@ -689,3 +689,21 @@ class SignIt(Action):
"Bitmask.app")
print codesign("-s", identity, "--force", "--deep", "--verbose", main_app)
print "Done"
+
+
+
+class RemoveUnused(Action):
+ def __init__(self, basedir, skip, do):
+ Action.__init__(self, "rmunused", basedir, skip, do)
+
+ @skippable
+ def run(self):
+ print "Removing unused python code..."
+ test_dirs = find(self._basedir, "-name", "*test*").strip().splitlines()
+ for td in test_dirs:
+ rm("-rf", os.path.join(self._basedir, td))
+
+ twisted_used = ["aplication", "conch", "cred", "version", "internet", "mail"]
+ # twisted_files = find(self._basedir, "-name", "t
+ print "Done"
+