This is an archive of the discontinued LLVM Phabricator instance.

F841: local variable assigned to but never used
ClosedPublic

Authored by thopre on Jan 15 2021, 2:49 AM.

Details

Summary

tests/server/reporting/analysis.py:

  • Ignore unused variables spike and slow which commented code further down refers to

lnt/server/ui/api.py:

  • Local variable machine_name and ts in function put() were seemingly introduced from copy/paste and were never used

lnt/server/ui/views.py:

  • Local variable comparison_start_run stopped being used from commit 465d5fdbf640b8e53f0f3d773f335e2c4825dd4f
  • Local variable session in function v4_latest_runs_report() was seemingly introduced from copy/paste and was never used

lnt/server/ui/profile_views.py:

  • Local variables idx and tlc in function v4_profile_ajax_getFunctions() were seemingly introduced from copy/paste and were never used
  • Local variable profileDir in function v4_profile() was seemingly introduced from copy/paste and was never used
  • Local variables profile1 and profile2 in function v4_profile() have never been used

lnt/server/ui/regression_views.py:

  • Local variable e in exception block of function v4_regression_detail() has never been used
  • Local variable new_regression_id in function v4_make_regression() has never been used

lnt/server/reporting/summaryreport.py:

  • Local variables run and datapoints in function _build_data_table() have never been used

lnt/server/db/testsuitedb.py:

  • Local variable testsuitedb in the constructor has never been used

lnt/server/db/fieldchange.py:

  • Local variable deleted in function regenerate_fieldchanges_for_run() has never been used

lnt/server/db/migrations/upgrade_14_to_15.py:

  • Local variable trans in function update_testsuite() was seemingly introduced from copy/paste from other migration scripts and was never used

tests/testing/profilev1impl.py:

  • Local variable s in function test_serialize() has never been used

tests/testing/profilev2impl.py:

  • Local variable s in function test_serialize() was seemingly introduced from copy/past eof the v1 version and was never used

Event Timeline

thopre created this revision.Jan 15 2021, 2:49 AM
thopre requested review of this revision.Jan 15 2021, 2:49 AM
tnfchris accepted this revision.Jan 15 2021, 8:12 AM

Nice cleanup!

This revision is now accepted and ready to land.Jan 15 2021, 8:12 AM
thopre closed this revision.Jan 15 2021, 9:05 AM