From aaa4029cd5f23ce486e09bf9c4b60b4cdd680177 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Thu, 26 Dec 2013 09:31:25 +0000 Subject: [PATCH] Remove unused members and make others private git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553464 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/xssf/streaming/SheetDataWriter.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java index 1036c2280..fa062f4c2 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java @@ -43,11 +43,10 @@ public class SheetDataWriter { private final File _fd; private final Writer _out; private int _rownum; - private boolean _rowContainedNullCells = false; - int _numberOfFlushedRows; - int _lowestIndexOfFlushedRows; // meaningful only of _numberOfFlushedRows>0 - int _numberOfCellsOfLastFlushedRow; // meaningful only of _numberOfFlushedRows>0 - int _numberLastFlushedRow = -1; // meaningful only of _numberOfFlushedRows>0 + private int _numberOfFlushedRows; + private int _lowestIndexOfFlushedRows; // meaningful only of _numberOfFlushedRows>0 + private int _numberOfCellsOfLastFlushedRow; // meaningful only of _numberOfFlushedRows>0 + private int _numberLastFlushedRow = -1; // meaningful only of _numberOfFlushedRows>0 public SheetDataWriter() throws IOException { _fd = createTempFile(); @@ -161,7 +160,6 @@ public class SheetDataWriter { _out.write(">\n"); this._rownum = rownum; - _rowContainedNullCells = false; } void endRow() throws IOException { @@ -170,7 +168,6 @@ public class SheetDataWriter { public void writeCell(int columnIndex, Cell cell) throws IOException { if (cell == null) { - _rowContainedNullCells = true; return; } String ref = new CellReference(_rownum, columnIndex).formatAsString();