remove width detection, not needed

This commit is contained in:
HorizonCode 2022-06-30 16:20:35 +02:00
parent 57a813d0f8
commit bf34e278a4

View File

@ -41,16 +41,6 @@ public class FileSystemTask extends Task {
.getPool()
.submit(
() -> {
int terminalWidth = -1;
try {
Terminal terminal = TerminalBuilder.terminal();
try (terminal) {
terminalWidth = terminal.getWidth();
}
} catch (IOException e) {
throw new RuntimeException(e);
}
try (ZipFile zipFile = new ZipFile(outputZipFile)) {
System.out.println("Indexing files...");
ProgressMonitor progressMonitor = zipFile.getProgressMonitor();
@ -62,8 +52,6 @@ public class FileSystemTask extends Task {
.setInitialMax(progressMonitor.getTotalWork())
.setTaskName("Adding Files...");
if (terminalWidth != -1) pbb.setMaxRenderedLength(terminalWidth);
try (ProgressBar pb = pbb.build()) {
while (!progressMonitor.getState().equals(ProgressMonitor.State.READY)) {
pb.stepTo(progressMonitor.getWorkCompleted());