diff --git a/src/java/org/apache/poi/hssf/model/InternalSheet.java b/src/java/org/apache/poi/hssf/model/InternalSheet.java
index 8cb482a574..b215e03f8a 100644
--- a/src/java/org/apache/poi/hssf/model/InternalSheet.java
+++ b/src/java/org/apache/poi/hssf/model/InternalSheet.java
@@ -688,8 +688,7 @@ public final class InternalSheet {
*/
public void removeValueRecord(int row, CellValueRecordInterface col) {
- log.logFormatted(POILogger.DEBUG, "remove value record row %",
- new int[]{row } );
+ log.log(POILogger.DEBUG, "remove value record row "+row);
_rowsAggregate.removeCell(col);
}
diff --git a/src/java/org/apache/poi/util/POILogger.java b/src/java/org/apache/poi/util/POILogger.java
index d892366e7e..04198bfbab 100644
--- a/src/java/org/apache/poi/util/POILogger.java
+++ b/src/java/org/apache/poi/util/POILogger.java
@@ -17,18 +17,11 @@
package org.apache.poi.util;
-import java.util.ArrayList;
-import java.util.List;
-
/**
* A logger interface that strives to make it as easy as possible for
* developers to write log calls, while simultaneously making those
* calls as cheap as possible by performing lazy evaluation of the log
* message.
- *
- * @author Marc Johnson (mjohnson at apache dot org)
- * @author Glen Stampoultzis (glens at apache.org)
- * @author Nicola Ken Barozzi (nicolaken at apache.org)
*/
@Internal
public abstract class POILogger {
@@ -110,90 +103,4 @@ public abstract class POILogger {
log(level, msg, lastEx);
}
}
-
- /**
- * Logs a formated message. The message itself may contain %
- * characters as place holders. This routine will attempt to match
- * the placeholder by looking at the type of parameter passed to
- * obj1.
- *
- * If the parameter is an array, it traverses the array first and
- * matches parameters sequentially against the array items.
- * Otherwise the parameters after message are matched
- * in order.
- *
- * If the place holder matches against a number it is printed as a
- * whole number. This can be overridden by specifying a precision
- * in the form %n.m where n is the padding for the whole part and
- * m is the number of decimal places to display. n can be excluded
- * if desired. n and m may not be more than 9.
- *
- * If the last parameter (after flattening) is a Throwable it is
- * logged specially.
- *
- * @param level One of DEBUG, INFO, WARN, ERROR, FATAL
- * @param message The message to log.
- * @param unflatParams The objects to match against.
- */
- public void logFormatted(int level, String message, Object... unflatParams) {
- if (!check(level)) return;
- Object[] params = flattenArrays(unflatParams);
- String msg = StringUtil.format(message, params);
- msg = msg.replaceAll("[\r\n]+", " "); // log forging escape
-
- if (params.length > 0 && params[params.length-1] instanceof Throwable) {
- log(level, msg, (Throwable)params[params.length-1]);
- } else {
- log(level, msg);
- }
- }
-
- /**
- * Flattens any contained objects. Only traverses one level deep.
- */
- private Object[] flattenArrays(Object... unflatParams) {
- List