forked from qt-creator/qt-creator
GenericProject: Code cleanup
Remove unused code from project node, access own members directly, etc. Change-Id: Icbffb4d3328757ffe3aa756ca1448fefba9bb00a Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -25,16 +25,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "genericprojectnodes.h"
|
||||
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/projectnodes.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <projectexplorer/toolchain.h>
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
#include <coreplugin/idocument.h>
|
||||
|
||||
#include <QFuture>
|
||||
|
||||
namespace CppTools { class CppProjectUpdater; }
|
||||
|
||||
@@ -51,10 +42,6 @@ public:
|
||||
explicit GenericProject(const Utils::FileName &filename);
|
||||
~GenericProject() override;
|
||||
|
||||
QString filesFileName() const;
|
||||
QString includesFileName() const;
|
||||
QString configFileName() const;
|
||||
|
||||
QString displayName() const override;
|
||||
|
||||
QStringList files(FilesMode fileMode) const override;
|
||||
@@ -74,7 +61,6 @@ public:
|
||||
|
||||
void refresh(RefreshOptions options);
|
||||
|
||||
QStringList projectIncludePaths() const;
|
||||
QStringList files() const;
|
||||
|
||||
protected:
|
||||
@@ -108,19 +94,5 @@ private:
|
||||
ProjectExplorer::Target *m_activeTarget = nullptr;
|
||||
};
|
||||
|
||||
class GenericProjectFile : public Core::IDocument
|
||||
{
|
||||
public:
|
||||
GenericProjectFile(GenericProject *parent, const Utils::FileName &fileName,
|
||||
GenericProject::RefreshOptions options);
|
||||
|
||||
ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const override;
|
||||
bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override;
|
||||
|
||||
private:
|
||||
GenericProject *m_project;
|
||||
GenericProject::RefreshOptions m_options;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace GenericProjectManager
|
||||
|
||||
Reference in New Issue
Block a user