forked from qt-creator/qt-creator
Debugger: Remove fillParametersFromRunConfiguration
Its use case is now covered by the generic createDebuggerRunControl. Change-Id: I2bd04351a51f3f8aae8407c2b7921a4566c17d56 Reviewed-by: Benjamin Zeller <benjamin.zeller@canonical.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -648,20 +648,4 @@ DebuggerRunControl *createDebuggerRunControl(const DebuggerStartParameters &sp,
|
||||
return creator.m_runControl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper for 3rd party plugins in need to reproduce the enrichment process.
|
||||
*/
|
||||
bool fillParametersFromRunConfiguration(DebuggerStartParameters *sp, const RunConfiguration *runConfig,
|
||||
QString *errorMessage)
|
||||
{
|
||||
DebuggerRunControlCreator creator;
|
||||
creator.initialize(*sp);
|
||||
creator.enrich(runConfig, 0);
|
||||
creator.createRunControl(DebugRunMode);
|
||||
if (errorMessage)
|
||||
*errorMessage = creator.fullError();
|
||||
*sp = creator.m_rp;
|
||||
return creator.m_errors.isEmpty();
|
||||
}
|
||||
|
||||
} // namespace Debugger
|
||||
|
Reference in New Issue
Block a user