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 2018/03/08 19:25:26 UTC

svn commit: r1826266 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/SampledImageReader.java

Author: tilman
Date: Thu Mar  8 19:25:26 2018
New Revision: 1826266

URL: http://svn.apache.org/viewvc?rev=1826266&view=rev
Log:
PDFBOX-4137: Sonar fix; remove unused

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/SampledImageReader.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/SampledImageReader.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/SampledImageReader.java?rev=1826266&r1=1826265&r2=1826266&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/SampledImageReader.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/SampledImageReader.java Thu Mar  8 19:25:26 2018
@@ -229,12 +229,15 @@ final class SampledImageReader
         InputStream iis = null;
         try
         {
-            final int inputWidth, inputHeight, startx, starty, scanWidth, scanHeight;
+            final int inputWidth;
+            final int startx;
+            final int starty;
+            final int scanWidth;
+            final int scanHeight;
             if (options.isFilterSubsampled())
             {
                 // Decode options were honored, and so there is no need for additional clipping or subsampling
                 inputWidth = width;
-                inputHeight = height;
                 startx = 0;
                 starty = 0;
                 scanWidth = width;
@@ -245,7 +248,6 @@ final class SampledImageReader
             {
                 // Decode options not honored, so we need to clip and subsample ourselves.
                 inputWidth = pdImage.getWidth();
-                inputHeight = pdImage.getHeight();
                 startx = clipped.x;
                 starty = clipped.y;
                 scanWidth = clipped.width;
@@ -350,12 +352,15 @@ final class SampledImageReader
         InputStream input = pdImage.createInputStream(options);
         try
         {
-            final int inputWidth, inputHeight, startx, starty, scanWidth, scanHeight;
+            final int inputWidth;
+            final int startx;
+            final int starty;
+            final int scanWidth;
+            final int scanHeight;
             if (options.isFilterSubsampled())
             {
                 // Decode options were honored, and so there is no need for additional clipping or subsampling
                 inputWidth = width;
-                inputHeight = height;
                 startx = 0;
                 starty = 0;
                 scanWidth = width;
@@ -366,7 +371,6 @@ final class SampledImageReader
             {
                 // Decode options not honored, so we need to clip and subsample ourselves.
                 inputWidth = pdImage.getWidth();
-                inputHeight = pdImage.getHeight();
                 startx = clipped.x;
                 starty = clipped.y;
                 scanWidth = clipped.width;
@@ -422,12 +426,15 @@ final class SampledImageReader
         ImageInputStream iis = null;
         try
         {
-            final int inputWidth, inputHeight, startx, starty, scanWidth, scanHeight;
+            final int inputWidth;
+            final int startx;
+            final int starty;
+            final int scanWidth;
+            final int scanHeight;
             if (options.isFilterSubsampled())
             {
                 // Decode options were honored, and so there is no need for additional clipping or subsampling
                 inputWidth = width;
-                inputHeight = height;
                 startx = 0;
                 starty = 0;
                 scanWidth = width;
@@ -438,7 +445,6 @@ final class SampledImageReader
             {
                 // Decode options not honored, so we need to clip and subsample ourselves.
                 inputWidth = pdImage.getWidth();
-                inputHeight = pdImage.getHeight();
                 startx = clipped.x;
                 starty = clipped.y;
                 scanWidth = clipped.width;