Skip to content

Commit

Permalink
Remove duplicate method
Browse files Browse the repository at this point in the history
Issue: n/a
  • Loading branch information
mlopatkin committed Nov 12, 2023
1 parent 8645487 commit 5c9fe82
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/name/mlopatkin/andlogview/ui/file/FileOpener.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package name.mlopatkin.andlogview.ui.file;

import static name.mlopatkin.andlogview.utils.MyFutures.failedFuture;

import name.mlopatkin.andlogview.ErrorDialogsHelper;
import name.mlopatkin.andlogview.liblogcat.file.FileDataSourceFactory;
import name.mlopatkin.andlogview.liblogcat.file.ImportProblem;
Expand Down Expand Up @@ -146,10 +148,4 @@ private void formatProblemsList(int problemsToShow, Collection<ImportProblem> pr
.map(ImportProblem::getMessage)
.forEachOrdered(msg -> output.append("<li>").append(msg).append("</li>"));
}

private static CompletableFuture<DataSource> failedFuture(Throwable th) {
var future = new CompletableFuture<DataSource>();
future.completeExceptionally(th);
return future;
}
}

0 comments on commit 5c9fe82

Please sign in to comment.