Procházet zdrojové kódy

remove unused codes

sunyj před 8 roky
rodič
revize
1fb17d72f1

+ 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) {