Commit e537aa62 authored by hjk's avatar hjk
Browse files

debugger: remove dead code



Change-Id: I959be322f030f08f8ec1692751545f3bb5f62aee
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 32ebcb02
......@@ -1520,45 +1520,6 @@ void DebuggerPluginPrivate::startExternalApplication()
startDebugger(rc);
}
//void DebuggerPluginPrivate::attachToLocalProcessHelper()
//{
// AttachExternalDialog dlg(mainWindow());
// dlg.setProfileIndex(configValue(_("LastAttachExternalProfileIndex")).toInt());
// if (dlg.exec() != QDialog::Accepted)
// return;
// if (dlg.attachPID() == 0) {
// QMessageBox::warning(mainWindow(), tr("Warning"),
// tr("Cannot attach to process with PID 0"));
// return;
// }
// setConfigValue(_("LastAttachExternalProfileIndex"), QVariant(dlg.profileIndex()));
// DebuggerStartParameters sp;
// fillParameters(&sp, dlg.profileId());
// sp.attachPID = dlg.attachPID();
// sp.displayName = tr("Process %1").arg(dlg.attachPID());
// sp.executable = dlg.executable();
// sp.startMode = AttachExternal;
// sp.closeMode = DetachAtClose;
// if (DebuggerRunControl *rc = createDebugger(sp))
// startDebugger(rc);
//}
//void DebuggerPluginPrivate::attachToLocalProcess(RunControl *rc)
//{
// DebuggerStartParameters sp;
// fillParameters(&sp, ProfileManager::instance()->defaultProfile()->id()); // FIXME: Extract from rc.
// sp.attachPID = rc->applicationProcessHandle().pid();
// sp.displayName = tr("Debugger attached to %1").arg(rc->displayName());
// sp.startMode = AttachExternal;
// sp.closeMode = DetachAtClose;
// if (DebuggerRunControl *rc = createDebugger(sp))
// startDebugger(rc);
//}
void DebuggerPluginPrivate::attachCore()
{
AttachCoreDialog dlg(mainWindow());
......
Markdown is supported
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