Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

clean-repo: Remove.

Anders Kaseorgb54007d36c53
diff --git a/tools/clean-repo b/tools/clean-repo
deleted file mode 100755
index f1615a40423..00000000000
--- a/tools/clean-repo
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env bash
-set -e
-
-# Remove .pyc files to prevent loading stale code.
-#
-# You can run it automatically on checkout:
-#
-# echo ./tools/clean-repo > .git/hooks/post-checkout
-# chmod +x .git/hooks/post-checkout
-
-cd "$(dirname "$0")/.."
-find . -name "*.pyc" -exec rm -f {} \;
-find . -name "__pycache__" -prune -exec rm -rf {} \;
diff --git a/tools/run-dev.py b/tools/run-dev.py
index b6cdcf522d7..96484e9c585 100755
--- a/tools/run-dev.py
+++ b/tools/run-dev.py
@@ -99,9 +99,6 @@ webpack_port = base_port + 3
os.chdir(os.path.join(os.path.dirname(__file__), ".."))
-# Clean up stale .pyc files etc.
-subprocess.check_call("./tools/clean-repo")
-
if options.clear_memcached:
subprocess.check_call("./scripts/setup/flush-memcached")
diff --git a/tools/test-all b/tools/test-all
index d0a929a0a89..825a47d7ade 100755
--- a/tools/test-all
+++ b/tools/test-all
@@ -46,7 +46,6 @@ echo
# prep
run ./tools/check-provision $FORCEARG
-run ./tools/clean-repo
# ci/backend
run ./tools/lint --groups=backend $FORCEARG