Commit 795f0ee3 authored by Amaury Medeiros's avatar Amaury Medeiros Committed by Egor Ushakov
Browse files

Remove dead code from DebugProcessImpl #1036

We don't need to check if we're in unit test mode, as we're going to return
executionResult anyway. There used to be a block of code (now commented) to
be executed in case we were not testing but it has not been changed in the
past several years, so it's unlikely it will ever be uncommented. This
commit removes this commented block as well.
parent 5ef03073
Showing with 0 additions and 31 deletions
+0 -31
......@@ -1949,37 +1949,6 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
throw e;
}
// writing to volatile field ensures the other threads will see the right values in non-volatile fields
if (ApplicationManager.getApplication().isUnitTestMode()) {
return executionResult;
}
/*
final Alarm debugPortTimeout = new Alarm(Alarm.ThreadToUse.SHARED_THREAD);
myExecutionResult.getProcessHandler().addProcessListener(new ProcessAdapter() {
public void processTerminated(ProcessEvent event) {
debugPortTimeout.cancelAllRequests();
}
public void startNotified(ProcessEvent event) {
debugPortTimeout.addRequest(new Runnable() {
public void run() {
if(isInInitialState()) {
ApplicationManager.getApplication().schedule(new Runnable() {
public void run() {
String message = DebuggerBundle.message("status.connect.failed", DebuggerBundle.getAddressDisplayName(remoteConnection), DebuggerBundle.getTransportName(remoteConnection));
Messages.showErrorDialog(myProject, message, DebuggerBundle.message("title.generic.debug.dialog"));
}
});
}
}
}, LOCAL_START_TIMEOUT);
}
});
*/
return executionResult;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment