From 23ed93817f333ca022dc3c09e64ebbd705428d5b Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 19 Feb 2024 10:10:57 +0000 Subject: [PATCH] remove unused loggers. Thanks to Ruby Hartono. This closes #594 and closes #595 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915870 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/record/AbstractEscherHolderRecord.java | 2 +- .../apache/poi/hssf/usermodel/helpers/HSSFColumnShifter.java | 3 --- .../org/apache/poi/hssf/usermodel/helpers/HSSFRowShifter.java | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/AbstractEscherHolderRecord.java b/poi/src/main/java/org/apache/poi/hssf/record/AbstractEscherHolderRecord.java index 0f1377aa03..14b7e56ce9 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/AbstractEscherHolderRecord.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/AbstractEscherHolderRecord.java @@ -79,7 +79,7 @@ public abstract class AbstractEscherHolderRecord extends Record { } private void convertToEscherRecords( int offset, int size, byte[] data ) { - escherRecords.clear(); + escherRecords.clear(); EscherRecordFactory recordFactory = new DefaultEscherRecordFactory(); int pos = offset; while ( pos < offset + size ) diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/helpers/HSSFColumnShifter.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/helpers/HSSFColumnShifter.java index 8819665cd5..1f2ce9bb6b 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/helpers/HSSFColumnShifter.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/helpers/HSSFColumnShifter.java @@ -17,8 +17,6 @@ package org.apache.poi.hssf.usermodel.helpers; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.ss.formula.FormulaShifter; import org.apache.poi.ss.formula.eval.NotImplementedException; @@ -35,7 +33,6 @@ import org.apache.poi.util.NotImplemented; // {@link org.apache.poi.hssf.usermodel.helpers.HSSFColumnShifter} @Beta public final class HSSFColumnShifter extends ColumnShifter { - private static final Logger LOG = LogManager.getLogger(HSSFColumnShifter.class); public HSSFColumnShifter(HSSFSheet sh) { super(sh); diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/helpers/HSSFRowShifter.java b/poi/src/main/java/org/apache/poi/hssf/usermodel/helpers/HSSFRowShifter.java index 77602136bd..19e9d2abc8 100644 --- a/poi/src/main/java/org/apache/poi/hssf/usermodel/helpers/HSSFRowShifter.java +++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/helpers/HSSFRowShifter.java @@ -17,8 +17,6 @@ package org.apache.poi.hssf.usermodel.helpers; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.ss.formula.FormulaShifter; @@ -33,7 +31,6 @@ import org.apache.poi.util.NotImplemented; // non-Javadoc: When possible, code should be implemented in the RowShifter abstract class to avoid duplication with // {@link org.apache.poi.hssf.usermodel.helpers.HSSFRowShifter} public final class HSSFRowShifter extends RowShifter { - private static final Logger LOG = LogManager.getLogger(HSSFRowShifter.class); public HSSFRowShifter(HSSFSheet sh) { super(sh); -- 2.39.5