Browse Source

remove unused codes

sunyj 8 years ago
parent
commit
1fb17d72f1
1 changed files with 1 additions and 3 deletions
  1. 1 3
      report/src/main/java/com/uas/report/controller/PdfController.java

+ 1 - 3
report/src/main/java/com/uas/report/controller/PdfController.java

@@ -258,11 +258,9 @@ public class PdfController {
             ServletOutputStream outputStream = response.getOutputStream();
             byte[] data = new byte[1024];
             int i;
-            int count = 0;
             try {
-                while (count <= file.length() && (i = fis.read(data)) != -1) {
+                while ((i = fis.read(data)) != -1) {
                     outputStream.write(data, 0, i);
-                    count += i;
                 }
                 outputStream.flush();
             } catch (IOException e) {