Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-310

add simple way to remove unused imports

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0
    • Generator, Templates
    • None

    Description

      One could check for lines starting with "import" and then check whether these imported Strings occur at another place in the file. If not, it should be safe to remove the import line.
      This does not work in all situations, e.g. if the Class name occurs in a commoent but nowhere else (then the import is not removed though it should be), but should be good enough for 99% of cases.

      Attachments

        Activity

          People

            tfischer Thomas Fox
            tfischer Thomas Fox
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: