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 |
||
---|---|---|
.. | ||
gtkmm2ext | ||
MSVCgtkmm2ext | ||
po | ||
action_model.cc | ||
actions.cc | ||
application.cc | ||
AUTHORS | ||
bindings.cc | ||
cairo_packer.cc | ||
cairo_theme.cc | ||
cairo_widget.cc | ||
cell_renderer_color_selector.cc | ||
cell_renderer_pixbuf_multi.cc | ||
cell_renderer_pixbuf_toggle.cc | ||
colors.cc | ||
colorspace.cc | ||
COPYING | ||
cursors.cc | ||
debug.cc | ||
dndtreeview.cc | ||
emscale.cc | ||
gtk_ui.cc | ||
gtkapplication_quartz.mm | ||
gtkapplication_win32.c | ||
gtkapplication_x11.c | ||
gtkapplication.c | ||
gtkutils.cc | ||
keyboard.cc | ||
libgtkmm2ext.pc.in | ||
libgtkmm2ext.spec.in | ||
menu_elems.cc | ||
nsglview.mm | ||
persistent_tooltip.cc | ||
sync-menu.c | ||
textviewer.cc | ||
treeutils.cc | ||
utils.cc | ||
visibility_tracker.cc | ||
window_proxy.cc | ||
window_title.cc | ||
wscript |