From c871bb7b9fe73ef408204028d2266d759c880417 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 16 Feb 2024 15:25:24 +0000 Subject: [PATCH] remove unused loggers - thanks to Ruby Hartono. This closes #588 and closes #589 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915819 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/poi/xssf/binary/XSSFBRelation.java | 3 --- .../org/apache/poi/xssf/streaming/SXSSFCreationHelper.java | 3 --- .../org/apache/poi/poifs/filesystem/POIFSDocumentPath.java | 5 ----- 3 files changed, 11 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/binary/XSSFBRelation.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/binary/XSSFBRelation.java index 94599bc5aa..cb6a879308 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/binary/XSSFBRelation.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/binary/XSSFBRelation.java @@ -17,8 +17,6 @@ package org.apache.poi.xssf.binary; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; import org.apache.poi.ooxml.POIXMLRelation; import org.apache.poi.openxml4j.opc.PackageRelationshipTypes; import org.apache.poi.util.Internal; @@ -34,7 +32,6 @@ import org.apache.poi.xssf.usermodel.XSSFRelation; */ @Internal public class XSSFBRelation extends POIXMLRelation { - private static final Logger LOGGER = LogManager.getLogger(XSSFBRelation.class); static final XSSFBRelation SHARED_STRINGS_BINARY = new XSSFBRelation( "application/vnd.ms-excel.sharedStrings", diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFCreationHelper.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFCreationHelper.java index 7985711601..b98a25964b 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFCreationHelper.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFCreationHelper.java @@ -17,8 +17,6 @@ package org.apache.poi.xssf.streaming; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; import org.apache.poi.common.usermodel.HyperlinkType; import org.apache.poi.ss.usermodel.ClientAnchor; import org.apache.poi.ss.usermodel.CreationHelper; @@ -37,7 +35,6 @@ import org.apache.poi.xssf.usermodel.XSSFRichTextString; * regular XSSF Workbook */ public class SXSSFCreationHelper implements CreationHelper { - private static final Logger LOG = LogManager.getLogger(SXSSFCreationHelper.class); private final SXSSFWorkbook wb; private final XSSFCreationHelper helper; diff --git a/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java b/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java index 61797ad2f8..4d3c8e62dc 100644 --- a/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java +++ b/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java @@ -25,17 +25,12 @@ import java.util.Objects; import java.util.function.Predicate; import java.util.stream.Stream; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; - /** * Class POIFSDocumentPath */ public class POIFSDocumentPath { - private static final Logger LOGGER = LogManager.getLogger(POIFSDocumentPath.class); - private final String[] components; private int hashcode; //lazy-compute hashCode -- 2.39.5