7737c17d52
Done with ad hoc scripting hacks processing unused imports found by pyflakes: for f in $( find * -name wscript ); do echo; pyflakes $f; done | grep 'waflib.Logs.* but unused' | cut -d: -f1 | while read f; do sed -i 's/^import waflib.Logs as Logs,/import/g' $f; done for f in $( find * -name wscript ); do echo; pyflakes $f; done | grep 'waflib.Options.* but unused' | cut -d: -f1 | while read f; do sed -i 's/import waflib.Options as Options, /import /g' $f; done for f in $( find * -name wscript ); do echo; pyflakes $f; done | grep 'waflib.Options.* but unused' | cut -d: -f1 | while read f; do sed -i 's/^from waflib import Options,/from waflib import/g' $f; done for f in $( find * -name wscript ); do echo; pyflakes $f; done | grep ' imported but unused$' | sed "s/^\([^:]*\):[0-9]*:[0-9]* '\(.*\)'.*/\1 \2/g" | while read f lib; do sed -i "/^import $lib$/d" $f; done for f in $( find * -name wscript ); do echo; pyflakes $f; done | grep 'waflib.Options.* but unused' | cut -d: -f1 | while read f; do sed -i '/from waflib import Options$/d' $f; done for f in $( find * -name wscript ); do echo; pyflakes $f; done | grep 'waflib.TaskGen.* but unused' | cut -d: -f1 | while read f; do sed -i '/from waflib import TaskGen$/d' $f; done for f in $( find * -name wscript ); do echo; pyflakes $f; done | grep 'waflib.Task.Task.* but unused' | cut -d: -f1 | while read f; do sed -i '/^from waflib.Task import Task$/d' $f; done for f in $( find * -name wscript ); do echo; pyflakes $f; done | grep 'waflib.Tools.winres.* but unused' | cut -d: -f1 | while read f; do sed -i '/^from waflib.Tools import winres$/d' $f; done for f in $( find * -name wscript ); do echo; pyflakes $f; done | grep 'waflib.Utils.* but unused' | cut -d: -f1 | while read f; do sed -i '/^import waflib.Utils as Utils$/d' $f; done |
||
---|---|---|
.. | ||
benchmark | ||
canvas | ||
doc | ||
MSVCcanvas | ||
test | ||
arc.cc | ||
arrow.cc | ||
box.cc | ||
build-and-run-benchmark.sh | ||
build-and-run-manual-test.sh | ||
build-and-run-tests.sh | ||
canvas.cc | ||
circle.cc | ||
container.cc | ||
ct | ||
curve.cc | ||
debug.cc | ||
fill.cc | ||
flag.cc | ||
framed_curve.cc | ||
grid.cc | ||
image.cc | ||
item.cc | ||
line_set.cc | ||
line.cc | ||
lollipop.cc | ||
lookup_table.cc | ||
meter.cc | ||
note.cc | ||
Notes | ||
outline.cc | ||
pixbuf.cc | ||
poly_item.cc | ||
poly_line.cc | ||
polygon.cc | ||
rectangle.cc | ||
root_group.cc | ||
ruler.cc | ||
run-manual-test.sh | ||
run-tests.sh | ||
scroll_group.cc | ||
stateful_image.cc | ||
step_button.cc | ||
table.cc | ||
text.cc | ||
tracking_text.cc | ||
types.cc | ||
utils.cc | ||
widget.cc | ||
wscript | ||
xfade_curve.cc |