Autotools: Remove unnecessary member function

Change-Id: Id61e744dd1bd837a6b8dfa2120cd8cdcf81851e0
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Tobias Hunger
2012-02-21 14:15:34 +01:00
parent 5485d15982
commit 290dad9538
3 changed files with 3 additions and 12 deletions

View File

@@ -155,7 +155,7 @@ QList<Project *> AutotoolsProject::dependsOn()
QString AutotoolsProject::defaultBuildDirectory() const
{
return sourceDirectory();
return projectDirectory();
}
QList<BuildConfigWidget *> AutotoolsProject::subConfigWidgets()
@@ -174,11 +174,6 @@ QStringList AutotoolsProject::files(FilesMode fileMode) const
return m_files;
}
QString AutotoolsProject::sourceDirectory() const
{
return QFileInfo(m_fileName).absolutePath();
}
QVariantMap AutotoolsProject::toMap() const
{
QVariantMap map = Project::toMap();
@@ -205,10 +200,7 @@ bool AutotoolsProject::fromMap(const QVariantMap &map)
QTC_ASSERT(t->activeBuildConfiguration(), return false);
// Ask the user for where he/she wants to build it.
QFileInfo fileInfo(m_fileName);
const QString defaultBuildDir = fileInfo.absolutePath();
QPointer<AutotoolsOpenProjectWizard> wizard = new AutotoolsOpenProjectWizard(m_manager, sourceDirectory());
QPointer<AutotoolsOpenProjectWizard> wizard = new AutotoolsOpenProjectWizard(m_manager, projectDirectory());
if (!wizard->exec() == QDialog::Accepted)
return false;