Remove some occurrences (used for test and debugging) of System.out.println

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@178 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2014-09-25 15:17:30 +00:00
parent 0746282f26
commit 751e14eb9f
13 changed files with 24 additions and 46 deletions

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.4 (2014-08-13)
* Version 1.4 (2014-08-25)
*
*/
@ -87,11 +87,11 @@ public final class Application {
*/
public static final void main (String[] args){
try {
long time = System.currentTimeMillis();
//long time = System.currentTimeMillis();
Application app = new Application();
app.parseCommandLine(args);
app.doConversion();
System.out.println("Total conversion time was "+(System.currentTimeMillis()-time)+" miliseconds");
//System.out.println("Total conversion time was "+(System.currentTimeMillis()-time)+" miliseconds");
} catch (IllegalArgumentException ex) {
String msg = ex.getMessage();
showUsage(msg);

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* version 1.4 (2014-09-06)
* version 1.4 (2014-09-24)
*
*/
@ -41,7 +41,6 @@ public final class EPUBConverter extends Xhtml11Converter {
// Constructor
public EPUBConverter() {
super();
System.out.println("Creating epub converter");
}
@Override public ConverterResult convert(InputStream is, String sTargetFileName) throws IOException {

View file

@ -166,7 +166,6 @@ public class DrawConverter extends ConverterHelper {
}
}
else { // unsupported object
//System.out.println("Unsupported "+sHref);
boolean bIgnore = true;
if (ofr.isOpenDocument()) { // look for replacement image
Element replacementImage = Misc.getChildByTagName(getFrame(node),XMLString.DRAW_IMAGE);

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2009 by Henrik Just
* Copyright: 2002-2014 by Henrik Just
*
* All Rights Reserved.
*
* Version 1.2 (2009-09-20)
* Version 1.4 (2014-09-24)
*
*/
@ -122,7 +122,6 @@ public class ReplacementTrieNode {
while (child!=null) {
if (child.getLaTeXCode()!=null) {
strings.add(sPrefix+child.getLetter());
System.out.println("Found "+sPrefix+child.getLetter());
}
child.collectStrings(strings, sPrefix+child.getLetter());
child = child.getNextSibling();

View file

@ -78,7 +78,6 @@ public class SimpleXMLParser extends DefaultHandler {
// We don't need - and in fact should avoid - any external entities
@Override public InputSource resolveEntity(String publicID, String systemID) throws SAXException {
//System.out.println("resolveEntity "+publicID+" "+systemID);
return new InputSource(new StringReader(""));
}

View file

@ -507,16 +507,11 @@ public class DrawConverter extends ConverterHelper {
// Store in cache in case we need to recycle
svgImages.put(bgd.getFileName(), imageElement);
}
else {
System.out.println("Failed to parse SVG");
}
// Else fail silently
} catch (IOException e) {
// Will not happen with a byte array
System.out.println("IOException parsing SVG");
e.printStackTrace();
} catch (SAXException e) {
e.printStackTrace();
System.out.println("SAXException parsing SVG");
// Fail silently
}
}
}