Remove commented out System.out calls / Move DummyGraphics2d to testcase area, as it's not used by production code

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846946 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2018-11-19 20:48:10 +00:00
parent 0beee42a19
commit af5b9d959c
8 changed files with 14 additions and 27 deletions

View File

@ -94,8 +94,6 @@ public final class MissingRecordAwareHSSFListener implements HSSFListener {
break; break;
case RowRecord.sid: case RowRecord.sid:
RowRecord rowrec = (RowRecord) record; RowRecord rowrec = (RowRecord) record;
//System.out.println("Row " + rowrec.getRowNumber() + " found, first column at "
// + rowrec.getFirstCol() + " last column at " + rowrec.getLastCol());
// If there's a jump in rows, fire off missing row records // If there's a jump in rows, fire off missing row records
if (lastRowRow + 1 < rowrec.getRowNumber()) { if (lastRowRow + 1 < rowrec.getRowNumber()) {

View File

@ -80,13 +80,10 @@ public final class UnknownRecord extends StandardRecord {
public UnknownRecord(RecordInputStream in) { public UnknownRecord(RecordInputStream in) {
_sid = in.getSid(); _sid = in.getSid();
_rawData = in.readRemainder(); _rawData = in.readRemainder();
// if (false && getBiffName(_sid) == null) {
// // unknown sids in the range 0x0004-0x0013 are probably 'sub-records' of ObjectRecord // TODO - put unknown OBJ sub-records in a different class
// // those sids are in a different number space. // unknown sids in the range 0x0004-0x0013 are probably 'sub-records' of ObjectRecord
// // TODO - put unknown OBJ sub-records in a different class // those sids are in a different number space.
// System.out.println("Unknown record 0x" +
// Integer.toHexString(_sid).toUpperCase(Locale.ROOT));
// }
} }
/** /**

View File

@ -48,19 +48,15 @@ public class Formula {
private Formula(byte[] byteEncoding, int encodedTokenLen) { private Formula(byte[] byteEncoding, int encodedTokenLen) {
_byteEncoding = byteEncoding.clone(); _byteEncoding = byteEncoding.clone();
_encodedTokenLen = encodedTokenLen; _encodedTokenLen = encodedTokenLen;
// if (false) { // set to true to eagerly check Ptg decoding
// LittleEndianByteArrayInputStream in = new LittleEndianByteArrayInputStream(byteEncoding); // TODO - this seems to occur when IntersectionPtg is present
// Ptg.readTokens(encodedTokenLen, in); // This example file "IntersectionPtg.xls"
// int nUnusedBytes = _byteEncoding.length - in.getReadIndex(); // used by test: TestIntersectionPtg.testReading()
// if (nUnusedBytes > 0) { // has 10 bytes unused at the end of the formula
// // TODO - this seems to occur when IntersectionPtg is present // 10 extra bytes are just 0x01 and 0x00
// // This example file "IntersectionPtg.xls" // LittleEndianByteArrayInputStream in = new LittleEndianByteArrayInputStream(byteEncoding);
// // used by test: TestIntersectionPtg.testReading() // Ptg.readTokens(encodedTokenLen, in);
// // has 10 bytes unused at the end of the formula // int nUnusedBytes = _byteEncoding.length - in.getReadIndex();
// // 10 extra bytes are just 0x01 and 0x00
// System.out.println(nUnusedBytes + " unused bytes at end of formula");
// }
// }
} }
/** /**
* Convenience method for {@link #read(int, LittleEndianInput, int)} * Convenience method for {@link #read(int, LittleEndianInput, int)}

View File

@ -234,7 +234,6 @@ public final class FormulaParser {
_inIntersection = false; _inIntersection = false;
} }
_pointer += Character.charCount(look); _pointer += Character.charCount(look);
//System.out.println(new StringBuilder("Got char: ").appendCodePoint(look)).toString();
} }
private void resetPointer(int ptr) { private void resetPointer(int ptr) {
_pointer = ptr; _pointer = ptr;

View File

@ -88,8 +88,7 @@ public final class OperandResolver {
CellRangeAddress range = cell.getArrayFormulaRange(); CellRangeAddress range = cell.getArrayFormulaRange();
int relativeRowIndex = cell.getRowIndex() - range.getFirstRow(); int relativeRowIndex = cell.getRowIndex() - range.getFirstRow();
int relativeColIndex = cell.getColumnIndex() - range.getFirstColumn(); int relativeColIndex = cell.getColumnIndex() - range.getFirstColumn();
//System.out.println("Row: " + relativeRowIndex + " Col: " + relativeColIndex);
if (ae.isColumn()) { if (ae.isColumn()) {
if (ae.isRow()) { if (ae.isRow()) {
return ae.getRelativeValue(0, 0); return ae.getRelativeValue(0, 0);

View File

@ -450,7 +450,6 @@ public class DataFormatter implements Observer {
// Strip custom text in quotes and escaped characters for now as it can cause performance problems in fractions. // Strip custom text in quotes and escaped characters for now as it can cause performance problems in fractions.
//String strippedFormatStr = formatStr.replaceAll("\\\\ ", " ").replaceAll("\\\\.", "").replaceAll("\"[^\"]*\"", " ").replaceAll("\\?", "#"); //String strippedFormatStr = formatStr.replaceAll("\\\\ ", " ").replaceAll("\\\\.", "").replaceAll("\"[^\"]*\"", " ").replaceAll("\\?", "#");
//System.out.println("formatStr: "+strippedFormatStr);
return new FractionFormat(defaultFractionWholePartFormat, defaultFractionFractionPartFormat); return new FractionFormat(defaultFractionWholePartFormat, defaultFractionFractionPartFormat);
} }

View File

@ -63,7 +63,6 @@ public final class Notes extends SheetContainer
for(int i=0; i<_children.length; i++) { for(int i=0; i<_children.length; i++) {
if(_children[i] instanceof NotesAtom) { if(_children[i] instanceof NotesAtom) {
notesAtom = (NotesAtom)_children[i]; notesAtom = (NotesAtom)_children[i];
//System.out.println("Found notes for sheet " + notesAtom.getSlideID());
} }
if(_children[i] instanceof PPDrawing) { if(_children[i] instanceof PPDrawing) {
ppDrawing = (PPDrawing)_children[i]; ppDrawing = (PPDrawing)_children[i];