1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[251486] Cleanup of unnecessary local variable.

This commit is contained in:
Marc Khouzam 2008-11-16 12:39:30 +00:00
parent 0f238db514
commit d9c21326ea

View file

@ -184,16 +184,14 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
// finalLaunchSequence failed. Shutdown the session so that all started // finalLaunchSequence failed. Shutdown the session so that all started
// services including any GDB process are shutdown. (bug 251486) // services including any GDB process are shutdown. (bug 251486)
// //
final GdbLaunch gdbLaunch = launch;
Query<Object> launchShutdownQuery = new Query<Object>() { Query<Object> launchShutdownQuery = new Query<Object>() {
@Override @Override
protected void execute(DataRequestMonitor<Object> rm) { protected void execute(DataRequestMonitor<Object> rm) {
gdbLaunch.shutdownSession(rm); launch.shutdownSession(rm);
} }
}; };
gdbLaunch.getSession().getExecutor().execute(launchShutdownQuery); launch.getSession().getExecutor().execute(launchShutdownQuery);
// wait for the shutdown to finish. // wait for the shutdown to finish.
// The Query.get() method is a synchronous call which blocks until the // The Query.get() method is a synchronous call which blocks until the
@ -201,9 +199,9 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
try { try {
launchShutdownQuery.get(); launchShutdownQuery.get();
} catch (InterruptedException e) { } 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) { } 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$
} }
} }
} }