From 08d802ea3edc0f84dc464729e4122547520ce621 Mon Sep 17 00:00:00 2001 From: Bernd Hufmann Date: Fri, 27 Mar 2015 10:28:00 -0400 Subject: [PATCH] tmf-remote: fix dead variable storage warning Change-Id: I32e815d954b4c2e83c01e6317f34d9af5cce46c6 Signed-off-by: Bernd Hufmann Reviewed-on: https://git.eclipse.org/r/44769 Reviewed-by: Patrick Tasse Tested-by: Patrick Tasse Reviewed-by: Hudson CI --- .../ui/wizards/fetch/RemoteFetchLogWizardRemotePage.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/org.eclipse.tracecompass.tmf.remote.ui/src/org/eclipse/tracecompass/internal/tmf/remote/ui/wizards/fetch/RemoteFetchLogWizardRemotePage.java b/org.eclipse.tracecompass.tmf.remote.ui/src/org/eclipse/tracecompass/internal/tmf/remote/ui/wizards/fetch/RemoteFetchLogWizardRemotePage.java index 312b75c764..d02ea1e33c 100644 --- a/org.eclipse.tracecompass.tmf.remote.ui/src/org/eclipse/tracecompass/internal/tmf/remote/ui/wizards/fetch/RemoteFetchLogWizardRemotePage.java +++ b/org.eclipse.tracecompass.tmf.remote.ui/src/org/eclipse/tracecompass/internal/tmf/remote/ui/wizards/fetch/RemoteFetchLogWizardRemotePage.java @@ -268,8 +268,6 @@ public class RemoteFetchLogWizardRemotePage extends AbstractTracePackageWizardPa return null; } - TracePackageElement[] elementViewerInput = new TracePackageElement[0]; - try { final AbstractTracePackageOperation generateManifestOperation = new RemoteGenerateManifestOperation(fProfile); @@ -290,18 +288,15 @@ public class RemoteFetchLogWizardRemotePage extends AbstractTracePackageWizardPa handleErrorStatus(status[0]); return null; } - elementViewerInput = generateManifestOperation.getResultElements(); + return generateManifestOperation.getResultElements(); } catch (InvocationTargetException e1) { handleError( Messages.TracePackageExtractManifestOperation_ErrorReadingManifest, e1); - return null; } catch (InterruptedException e1) { // Canceled - return null; } - - return elementViewerInput; + return null; } /** -- 2.34.1