Remove unused imports
authorKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 29 Jul 2017 01:37:33 +0000 (21:37 -0400)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 29 Jul 2017 01:37:33 +0000 (21:37 -0400)
build.xml
src/jexer/Scrollable.java
src/jexer/TApplication.java
src/jexer/TDesktop.java
src/jexer/demos/DesktopDemo.java

index 0209da005156511c83c85703178043642ebd3d16..156a21553c2a60952abd6fd9b4a7ef67661c812e 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -30,9 +30,8 @@
 
 <project name="jexer" basedir="." default="jar">
 
-  <!--
-      I am using GCJ deliberately to test against Java 1.5 features.
-  -->
+  <!-- I test with gcj because it is Java 1.5 and has better warnings
+       for unused imports. -->
   <property name="build.compiler" value="gcj"/>
 
   <property name="version"       value="0.0.5"/>
   <target name="compile">
     <mkdir dir="${classes.dir}"/>
     <javac srcdir="${src.dir}" destdir="${classes.dir}"
-          includeantruntime="false"
-          debug="on"
-          debuglevel="lines,vars,source"
-          />
+           includeantruntime="false"
+           debug="on"
+           debuglevel="lines,vars,source"
+           />
   </target>
 
   <target name="jar" depends="compile">
     <mkdir dir="${jar.dir}"/>
     <jar destfile="${jar.dir}/${ant.project.name}.jar"
-        basedir="${classes.dir}">
+         basedir="${classes.dir}">
       <fileset dir="${resources.dir}"/>
       <!-- Include source by default. -->
       <fileset dir="${src.dir}"/>
       <manifest>
-       <attribute name="Main-Class" value="jexer.demos.Demo1"/>
-       <attribute name="Implementation-Version" value="${version}"/>
+        <attribute name="Main-Class" value="jexer.demos.Demo1"/>
+        <attribute name="Implementation-Version" value="${version}"/>
       </manifest>
     </jar>
   </target>
 
   <target name="docs" depends="jar">
     <javadoc
-       destdir="${apidocs.dir}"
-       author="true"
-       version="true"
-       use="true"
-       access="protected"
-       failonwarning="true"
-       windowtitle="Jexer - Java Text User Interface - API docs">
+        destdir="${apidocs.dir}"
+        author="true"
+        version="true"
+        use="true"
+        access="protected"
+        failonwarning="true"
+        windowtitle="Jexer - Java Text User Interface - API docs">
 
       <fileset dir="${src.dir}" defaultexcludes="yes">
-       <include name="jexer/**"/>
+        <include name="jexer/**"/>
       </fileset>
 
       <doctitle>
-       <![CDATA[<h1>Jexer - Java Text User Interface Library</h1>]]>
+        <![CDATA[<h1>Jexer - Java Text User Interface Library</h1>]]>
       </doctitle>
       <bottom>
-       <![CDATA[<i>Copyright &#169; 2017 Kevin Lamonte. Licensed MIT.</i>]]>
+        <![CDATA[<i>Copyright &#169; 2017 Kevin Lamonte. Licensed MIT.</i>]]>
       </bottom>
       <!--
-         <tag name="todo" scope="all" description="To do:"/>
-         <group title="Group 1 Packages" packages="com.dummy.test.a*"/>
-         <group title="Group 2 Packages" packages="com.dummy.test.b*:com.dummy.test.c*"/>
-         <link offline="true"
-         href="http://docs.oracle.com/javase/7/docs/api/"
-         packagelistLoc="C:\tmp"/>
-         <link href="http://docs.oracle.com/javase/7/docs/api/"/>
+          <tag name="todo" scope="all" description="To do:"/>
+          <group title="Group 1 Packages" packages="com.dummy.test.a*"/>
+          <group title="Group 2 Packages" packages="com.dummy.test.b*:com.dummy.test.c*"/>
+          <link offline="true"
+          href="http://docs.oracle.com/javase/7/docs/api/"
+          packagelistLoc="C:\tmp"/>
+          <link href="http://docs.oracle.com/javase/7/docs/api/"/>
       -->
     </javadoc>
   </target>
index 5a065827af50dd5a32261f47c50e37bc8f622d15..00c9ebefc2b967b991418e6d63bf6dd8ac5f402d 100644 (file)
  */
 package jexer;
 
-import jexer.event.TKeypressEvent;
-import jexer.event.TMouseEvent;
-import static jexer.TKeypress.*;
-
 /**
  * Scrollable provides a public API for horizontal and vertical scrollbars.
  * Note that not all Scrollables support both horizontal and vertical
index c32614914334ee7002d429c50df35aa98a7b9033..d735e48b8da93d500451c3571f1d67d1837a605e 100644 (file)
@@ -44,7 +44,6 @@ import java.util.Map;
 
 import jexer.bits.CellAttributes;
 import jexer.bits.ColorTheme;
-import jexer.bits.GraphicsChars;
 import jexer.event.TCommandEvent;
 import jexer.event.TInputEvent;
 import jexer.event.TKeypressEvent;
index 07a29a3397b64847bb0a0d6fa8e439ac11bfa583..107427264eaeafa077266fadcef6b13fc4ff9614 100644 (file)
@@ -33,7 +33,6 @@ import jexer.bits.GraphicsChars;
 import jexer.event.TKeypressEvent;
 import jexer.event.TMenuEvent;
 import jexer.event.TMouseEvent;
-import jexer.event.TResizeEvent;
 
 /**
  * TDesktop is a special-class window that is drawn underneath everything
index 3cd713aa0eb3ce0b70f665c94ea824a0fc8c18c4..58d9893a15e2d06b755660fe41ec82e1c73eb61e 100644 (file)
  */
 package jexer.demos;
 
-import java.io.*;
-import java.util.*;
 
 import jexer.*;
-import jexer.event.*;
-import jexer.menu.*;
 
 /**
  * The modified desktop.