From 5c9fe827ed7369779ec3f4c9250fae7ac4015629 Mon Sep 17 00:00:00 2001 From: Mikhail Lopatkin Date: Mon, 13 Nov 2023 00:49:42 +0100 Subject: [PATCH] Remove duplicate method Issue: n/a --- src/name/mlopatkin/andlogview/ui/file/FileOpener.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/name/mlopatkin/andlogview/ui/file/FileOpener.java b/src/name/mlopatkin/andlogview/ui/file/FileOpener.java index 95198821..3bb1247e 100644 --- a/src/name/mlopatkin/andlogview/ui/file/FileOpener.java +++ b/src/name/mlopatkin/andlogview/ui/file/FileOpener.java @@ -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; @@ -146,10 +148,4 @@ private void formatProblemsList(int problemsToShow, Collection pr .map(ImportProblem::getMessage) .forEachOrdered(msg -> output.append("
  • ").append(msg).append("
  • ")); } - - private static CompletableFuture failedFuture(Throwable th) { - var future = new CompletableFuture(); - future.completeExceptionally(th); - return future; - } }