Add remove unused script

This commit is contained in:
世界 2023-12-09 16:59:55 +08:00
parent f8eafb781b
commit e4aedc6f6e
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

23
remove-unused.sh Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -e -o pipefail
function remove_unused() {
git rm -rf --ignore-unmatch \
.github \
tests \
*_test.go \
**/*_test.go \
conn/bindtest \
tun/netstack \
tun/tuntest \
tun/testdata \
main*.go \
*.md
}
remove_unused
remove_unused
go mod tidy
git commit -a -m "Remove unused"