Commit c260d7cd authored by hjk's avatar hjk

Debugger: Silence warnings about unused test code

Change-Id: I1800a1b84fdd03278ccb2431fb66791269ea8991
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent d46ceceb
......@@ -3509,25 +3509,25 @@ void DebuggerPluginPrivate::testUnloadProject()
invoke<void>(pe, "unloadProject");
}
static Target *activeTarget()
{
Project *project = ProjectExplorerPlugin::instance()->currentProject();
return project->activeTarget();
}
//static Target *activeTarget()
//{
// Project *project = ProjectExplorerPlugin::instance()->currentProject();
// return project->activeTarget();
//}
static Kit *currentKit()
{
Target *t = activeTarget();
if (!t || !t->isEnabled())
return 0;
return t->kit();
}
//static Kit *currentKit()
//{
// Target *t = activeTarget();
// if (!t || !t->isEnabled())
// return 0;
// return t->kit();
//}
static LocalApplicationRunConfiguration *activeLocalRunConfiguration()
{
Target *t = activeTarget();
return t ? qobject_cast<LocalApplicationRunConfiguration *>(t->activeRunConfiguration()) : 0;
}
//static LocalApplicationRunConfiguration *activeLocalRunConfiguration()
//{
// Target *t = activeTarget();
// return t ? qobject_cast<LocalApplicationRunConfiguration *>(t->activeRunConfiguration()) : 0;
//}
void DebuggerPluginPrivate::testRunProject(const DebuggerStartParameters &sp, const TestCallBack &cb)
{
......
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