You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2020/06/19 06:40:46 UTC

svn commit: r1878980 - /pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/BufferedRandomAccessFile.java

Author: tilman
Date: Fri Jun 19 06:40:45 2020
New Revision: 1878980

URL: http://svn.apache.org/viewvc?rev=1878980&view=rev
Log:
PDFBOX-4890: remove debug logging

Modified:
    pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/BufferedRandomAccessFile.java

Modified: pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/BufferedRandomAccessFile.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/BufferedRandomAccessFile.java?rev=1878980&r1=1878979&r2=1878980&view=diff
==============================================================================
--- pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/BufferedRandomAccessFile.java (original)
+++ pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/BufferedRandomAccessFile.java Fri Jun 19 06:40:45 2020
@@ -19,8 +19,6 @@ import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.RandomAccessFile;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 
 /**
  * This class is a version of the one published at
@@ -35,8 +33,6 @@ import org.apache.commons.logging.LogFac
  */
 public class BufferedRandomAccessFile extends RandomAccessFile
 {
-    private static final Log LOG = LogFactory.getLog(BufferedRandomAccessFile.class);
-
     /**
      * Uses a byte instead of a char buffer for efficiency reasons.
      */
@@ -70,7 +66,6 @@ public class BufferedRandomAccessFile ex
             throws FileNotFoundException
     {
         super(filename, mode);
-LOG.debug("filename: " + filename);
         BUFSIZE = bufsize;
         buffer = new byte[BUFSIZE];
     }
@@ -91,7 +86,6 @@ LOG.debug("filename: " + filename);
             throws FileNotFoundException
     {
         super(file, mode);
-LOG.debug("file: " + file);
         BUFSIZE = bufsize;
         buffer = new byte[BUFSIZE];
     }
@@ -154,7 +148,6 @@ LOG.debug("file: " + file);
     @Override
     public int read(byte[] b, int off, int len) throws IOException
     {
-LOG.debug("b size: " + b.length + ", off: " + off + ", len: " + len);
         int leftover = bufend - bufpos;
         if (len <= leftover)
         {
@@ -166,9 +159,7 @@ LOG.debug("b size: " + b.length + ", off
         bufpos += leftover;
         if (fillBuffer() > 0)
         {
-LOG.debug("leftover: " + leftover);
             int bytesRead = read(b, off + leftover, len - leftover);
-LOG.debug("bytesRead: " + bytesRead);
             if (bytesRead > 0)
             {
                 leftover += bytesRead;