From 87f5a0c7cdd090ce57e27dca97522583596ef95f Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Sat, 16 Sep 2017 08:23:48 +0000 Subject: [PATCH] Remove unused imports git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808513 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/hssf/eventusermodel/AbortableHSSFListener.java | 1 - .../org/apache/poi/hssf/eventusermodel/HSSFEventFactory.java | 1 - src/ooxml/java/org/apache/poi/util/PackageHelper.java | 1 - .../poi/xssf/usermodel/XSSFConditionalFormattingRule.java | 1 - .../org/apache/poi/xssf/usermodel/XSSFTextParagraph.java | 1 - .../org/apache/poi/openxml4j/opc/TestPackagePartName.java | 3 --- .../org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java | 5 ----- .../poi/xssf/usermodel/helpers/TestHeaderFooterHelper.java | 2 -- .../testcases/org/apache/poi/hsmf/TestBlankFileRead.java | 1 - .../org/apache/poi/hsmf/TestMessageSubmissionChunk.java | 1 - .../apache/poi/hsmf/TestMessageSubmissionChunkY2KRead.java | 1 - .../testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java | 1 - .../testcases/org/apache/poi/hsmf/datatypes/TestTypes.java | 2 -- .../org/apache/poi/hwpf/usermodel/TestBug46610.java | 3 --- src/testcases/org/apache/poi/TestPOITestCase.java | 1 - .../org/apache/poi/ss/formula/TestSheetNameFormatter.java | 1 - src/testcases/org/apache/poi/ss/util/TestCellAddress.java | 2 -- src/testcases/org/apache/poi/ss/util/TestCellReference.java | 1 - 18 files changed, 29 deletions(-) diff --git a/src/java/org/apache/poi/hssf/eventusermodel/AbortableHSSFListener.java b/src/java/org/apache/poi/hssf/eventusermodel/AbortableHSSFListener.java index 9000a7476..7ba390c34 100644 --- a/src/java/org/apache/poi/hssf/eventusermodel/AbortableHSSFListener.java +++ b/src/java/org/apache/poi/hssf/eventusermodel/AbortableHSSFListener.java @@ -19,7 +19,6 @@ package org.apache.poi.hssf.eventusermodel; import org.apache.poi.hssf.record.Record; -import org.apache.poi.hssf.eventusermodel.HSSFUserException; /** * Abstract class for use with the HSSFRequest and HSSFEventFactory, which diff --git a/src/java/org/apache/poi/hssf/eventusermodel/HSSFEventFactory.java b/src/java/org/apache/poi/hssf/eventusermodel/HSSFEventFactory.java index 929ec6cd1..32463a55e 100644 --- a/src/java/org/apache/poi/hssf/eventusermodel/HSSFEventFactory.java +++ b/src/java/org/apache/poi/hssf/eventusermodel/HSSFEventFactory.java @@ -21,7 +21,6 @@ import java.io.InputStream; import java.io.IOException; import java.util.Set; -import org.apache.poi.hssf.eventusermodel.HSSFUserException; import org.apache.poi.hssf.record.*; import org.apache.poi.poifs.filesystem.DirectoryNode; import org.apache.poi.poifs.filesystem.POIFSFileSystem; diff --git a/src/ooxml/java/org/apache/poi/util/PackageHelper.java b/src/ooxml/java/org/apache/poi/util/PackageHelper.java index 884868f1b..e95032311 100644 --- a/src/ooxml/java/org/apache/poi/util/PackageHelper.java +++ b/src/ooxml/java/org/apache/poi/util/PackageHelper.java @@ -21,7 +21,6 @@ import org.apache.poi.openxml4j.opc.*; import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.openxml4j.exceptions.OpenXML4JException; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; -import org.apache.poi.util.IOUtils; import org.apache.poi.POIXMLException; import java.io.*; diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFConditionalFormattingRule.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFConditionalFormattingRule.java index 1a7dcfbc1..bedb2183f 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFConditionalFormattingRule.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFConditionalFormattingRule.java @@ -25,7 +25,6 @@ import java.util.Map; import org.apache.poi.ss.usermodel.*; import org.apache.poi.ss.usermodel.ConditionalFormattingThreshold.RangeType; import org.apache.poi.ss.usermodel.IconMultiStateFormatting.IconSet; -import org.apache.poi.xssf.usermodel.XSSFFontFormatting; import org.apache.poi.xssf.model.StylesTable; import org.openxmlformats.schemas.spreadsheetml.x2006.main.*; diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTextParagraph.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTextParagraph.java index 6500c1603..e03107e41 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTextParagraph.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTextParagraph.java @@ -19,7 +19,6 @@ package org.apache.poi.xssf.usermodel; import org.apache.poi.util.Internal; import org.apache.poi.util.Units; -import org.apache.poi.xssf.usermodel.TextAlign; import org.apache.poi.xssf.model.ParagraphPropertyFetcher; import org.apache.xmlbeans.XmlObject; import org.openxmlformats.schemas.drawingml.x2006.main.*; diff --git a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagePartName.java b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagePartName.java index ed9b90093..65642fceb 100644 --- a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagePartName.java +++ b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagePartName.java @@ -17,9 +17,6 @@ package org.apache.poi.openxml4j.opc; -import org.apache.poi.openxml4j.opc.PackagePartName; -import org.apache.poi.openxml4j.opc.PackagingURIHelper; - import junit.framework.TestCase; public final class TestPackagePartName extends TestCase { diff --git a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java index 39ab5ed4d..c9980c8fa 100644 --- a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java +++ b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java @@ -22,11 +22,6 @@ import java.net.URISyntaxException; import junit.framework.TestCase; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; -import org.apache.poi.openxml4j.opc.ContentTypes; -import org.apache.poi.openxml4j.opc.OPCPackage; -import org.apache.poi.openxml4j.opc.PackagePart; -import org.apache.poi.openxml4j.opc.PackagePartName; -import org.apache.poi.openxml4j.opc.PackagingURIHelper; public class TestPackagingURIHelper extends TestCase { diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestHeaderFooterHelper.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestHeaderFooterHelper.java index 2d25e3e95..d058e36c8 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestHeaderFooterHelper.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestHeaderFooterHelper.java @@ -19,8 +19,6 @@ package org.apache.poi.xssf.usermodel.helpers; import junit.framework.TestCase; -import org.apache.poi.xssf.usermodel.helpers.HeaderFooterHelper; - /** * Test the header and footer helper. * As we go through XmlBeans, should always use &, diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/TestBlankFileRead.java b/src/scratchpad/testcases/org/apache/poi/hsmf/TestBlankFileRead.java index c4f13a627..0a9a7af8e 100644 --- a/src/scratchpad/testcases/org/apache/poi/hsmf/TestBlankFileRead.java +++ b/src/scratchpad/testcases/org/apache/poi/hsmf/TestBlankFileRead.java @@ -19,7 +19,6 @@ package org.apache.poi.hsmf; import java.io.IOException; -import org.apache.poi.hsmf.MAPIMessage; import org.apache.poi.hsmf.exceptions.ChunkNotFoundException; import org.apache.poi.POIDataSamples; diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/TestMessageSubmissionChunk.java b/src/scratchpad/testcases/org/apache/poi/hsmf/TestMessageSubmissionChunk.java index d3ed7d49c..fc218b912 100644 --- a/src/scratchpad/testcases/org/apache/poi/hsmf/TestMessageSubmissionChunk.java +++ b/src/scratchpad/testcases/org/apache/poi/hsmf/TestMessageSubmissionChunk.java @@ -19,7 +19,6 @@ package org.apache.poi.hsmf; import java.io.IOException; -import org.apache.poi.hsmf.MAPIMessage; import org.apache.poi.hsmf.exceptions.ChunkNotFoundException; import org.apache.poi.POIDataSamples; diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/TestMessageSubmissionChunkY2KRead.java b/src/scratchpad/testcases/org/apache/poi/hsmf/TestMessageSubmissionChunkY2KRead.java index dd1d8f929..410356b29 100644 --- a/src/scratchpad/testcases/org/apache/poi/hsmf/TestMessageSubmissionChunkY2KRead.java +++ b/src/scratchpad/testcases/org/apache/poi/hsmf/TestMessageSubmissionChunkY2KRead.java @@ -19,7 +19,6 @@ package org.apache.poi.hsmf; import java.io.IOException; -import org.apache.poi.hsmf.MAPIMessage; import org.apache.poi.hsmf.exceptions.ChunkNotFoundException; import org.apache.poi.POIDataSamples; diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java b/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java index 9d95bba54..126a265ab 100644 --- a/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java +++ b/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java @@ -19,7 +19,6 @@ package org.apache.poi.hsmf; import java.io.IOException; -import org.apache.poi.hsmf.MAPIMessage; import org.apache.poi.hsmf.exceptions.ChunkNotFoundException; import org.apache.poi.POIDataSamples; diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/datatypes/TestTypes.java b/src/scratchpad/testcases/org/apache/poi/hsmf/datatypes/TestTypes.java index 8a58639d7..305de74a8 100644 --- a/src/scratchpad/testcases/org/apache/poi/hsmf/datatypes/TestTypes.java +++ b/src/scratchpad/testcases/org/apache/poi/hsmf/datatypes/TestTypes.java @@ -17,8 +17,6 @@ package org.apache.poi.hsmf.datatypes; -import org.apache.poi.hsmf.datatypes.Types; - import junit.framework.TestCase; /** diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug46610.java b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug46610.java index d43aa3172..8ef95b84d 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug46610.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug46610.java @@ -22,9 +22,6 @@ import static org.apache.poi.POITestCase.assertContains; import org.junit.Test; -import org.apache.poi.hwpf.usermodel.CharacterRun; -import org.apache.poi.hwpf.usermodel.Paragraph; -import org.apache.poi.hwpf.usermodel.Range; import org.apache.poi.hwpf.HWPFDocument; import org.apache.poi.hwpf.HWPFTestDataSamples; diff --git a/src/testcases/org/apache/poi/TestPOITestCase.java b/src/testcases/org/apache/poi/TestPOITestCase.java index fd4000854..4b3155e01 100644 --- a/src/testcases/org/apache/poi/TestPOITestCase.java +++ b/src/testcases/org/apache/poi/TestPOITestCase.java @@ -25,7 +25,6 @@ import java.util.Collections; import java.util.Locale; import java.util.Map; -import org.apache.poi.POITestCase; import org.junit.Ignore; import org.junit.Test; diff --git a/src/testcases/org/apache/poi/ss/formula/TestSheetNameFormatter.java b/src/testcases/org/apache/poi/ss/formula/TestSheetNameFormatter.java index 69b0c9b4f..212581092 100644 --- a/src/testcases/org/apache/poi/ss/formula/TestSheetNameFormatter.java +++ b/src/testcases/org/apache/poi/ss/formula/TestSheetNameFormatter.java @@ -18,7 +18,6 @@ package org.apache.poi.ss.formula; import junit.framework.TestCase; -import org.apache.poi.ss.formula.SheetNameFormatter; /** * Tests for {@link SheetNameFormatter} diff --git a/src/testcases/org/apache/poi/ss/util/TestCellAddress.java b/src/testcases/org/apache/poi/ss/util/TestCellAddress.java index 6ca6f65be..57d7a1a17 100644 --- a/src/testcases/org/apache/poi/ss/util/TestCellAddress.java +++ b/src/testcases/org/apache/poi/ss/util/TestCellAddress.java @@ -17,8 +17,6 @@ package org.apache.poi.ss.util; -import org.apache.poi.ss.util.CellAddress; - import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; diff --git a/src/testcases/org/apache/poi/ss/util/TestCellReference.java b/src/testcases/org/apache/poi/ss/util/TestCellReference.java index 4ebfa00be..6cfb7d9e7 100644 --- a/src/testcases/org/apache/poi/ss/util/TestCellReference.java +++ b/src/testcases/org/apache/poi/ss/util/TestCellReference.java @@ -18,7 +18,6 @@ package org.apache.poi.ss.util; import org.apache.poi.ss.SpreadsheetVersion; -import org.apache.poi.ss.util.CellReference; import org.junit.Test; import static org.junit.Assert.assertEquals;