From d9c21326eaea1776a1722f4107986e07f7a5389c Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Sun, 16 Nov 2008 12:39:30 +0000 Subject: [PATCH] [251486] Cleanup of unnecessary local variable. --- .../provisional/launching/GdbLaunchDelegate.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/internal/provisional/launching/GdbLaunchDelegate.java b/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/internal/provisional/launching/GdbLaunchDelegate.java index 8d8b149cacc..e05854faaa3 100644 --- a/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/internal/provisional/launching/GdbLaunchDelegate.java +++ b/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/internal/provisional/launching/GdbLaunchDelegate.java @@ -184,16 +184,14 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate // finalLaunchSequence failed. Shutdown the session so that all started // services including any GDB process are shutdown. (bug 251486) // - final GdbLaunch gdbLaunch = launch; - Query launchShutdownQuery = new Query() { @Override protected void execute(DataRequestMonitor rm) { - gdbLaunch.shutdownSession(rm); + launch.shutdownSession(rm); } }; - gdbLaunch.getSession().getExecutor().execute(launchShutdownQuery); + launch.getSession().getExecutor().execute(launchShutdownQuery); // wait for the shutdown to finish. // The Query.get() method is a synchronous call which blocks until the @@ -201,9 +199,9 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate try { launchShutdownQuery.get(); } catch (InterruptedException e) { - throw new DebugException( new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, DebugException.INTERNAL_ERROR, "InterruptedException while shutting down debugger launch " + gdbLaunch, e)); //$NON-NLS-1$ + throw new DebugException( new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, DebugException.INTERNAL_ERROR, "InterruptedException while shutting down debugger launch " + launch, e)); //$NON-NLS-1$ } catch (ExecutionException e) { - throw new DebugException(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, DebugException.REQUEST_FAILED, "Error in shutting down debugger launch " + gdbLaunch, e)); //$NON-NLS-1$ + throw new DebugException(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, DebugException.REQUEST_FAILED, "Error in shutting down debugger launch " + launch, e)); //$NON-NLS-1$ } } }