mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
365 B
16 lines
365 B
12 years ago
|
#!/bin/sh
|
||
|
|
||
|
cd `dirname "$0"`/../
|
||
|
|
||
|
for FILE in src/*.cc; do
|
||
|
sed -rne 's/^using (\w+::\w+);$/\1/p' $FILE | sort -c || echo "in $FILE"
|
||
|
done
|
||
|
|
||
|
for FILE in src/*.cc; do
|
||
|
for IMPORT in `sed -rne 's/^using (\w+)::(\w+);$/\2/p' $FILE`; do
|
||
|
if ! sed -re '/^using (\w+)::(\w+);$/d' $FILE | grep -q "$IMPORT"; then
|
||
|
echo "$IMPORT unused in $FILE"
|
||
|
fi
|
||
|
done
|
||
|
done
|