Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4FFFA114C8 for ; Wed, 3 Sep 2014 21:03:52 +0000 (UTC) Received: (qmail 93218 invoked by uid 500); 3 Sep 2014 21:03:51 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 93147 invoked by uid 500); 3 Sep 2014 21:03:51 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 92960 invoked by uid 99); 3 Sep 2014 21:03:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 21:03:51 +0000 Date: Wed, 3 Sep 2014 21:03:51 +0000 (UTC) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (TORQUE-310) add simple way to remove unused imports MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Fox resolved TORQUE-310. ------------------------------- Resolution: Fixed > add simple way to remove unused imports > --------------------------------------- > > Key: TORQUE-310 > URL: https://issues.apache.org/jira/browse/TORQUE-310 > Project: Torque > Issue Type: Improvement > Components: Generator, Templates > Reporter: Thomas Fox > Assignee: Thomas Fox > Fix For: 4.1 > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org