Explorar o código

remove unused codes

sunyj %!s(int64=8) %!d(string=hai) anos
pai
achega
1fb17d72f1

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

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