forked from qt-creator/qt-creator
Nim: Remove unused method
... and its associated attribute along the way since it is not needed any longer. Change-Id: I25a8c5fd9ee45de10b3764805c4df0500a5fd6cf Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -153,11 +153,11 @@ void NimbleBuildSystem::updateProject()
|
|||||||
const FilePath projectDir = projectDirectory();
|
const FilePath projectDir = projectDirectory();
|
||||||
const FilePath nimble = Nim::nimblePathFromKit(kit());
|
const FilePath nimble = Nim::nimblePathFromKit(kit());
|
||||||
|
|
||||||
m_metadata = parseMetadata(nimble.toString(), projectDir.toString());
|
const NimbleMetadata metadata = parseMetadata(nimble.toString(), projectDir.toString());
|
||||||
const FilePath binDir = projectDir.pathAppended(m_metadata.binDir);
|
const FilePath binDir = projectDir.pathAppended(metadata.binDir);
|
||||||
const FilePath srcDir = projectDir.pathAppended("src");
|
const FilePath srcDir = projectDir.pathAppended("src");
|
||||||
|
|
||||||
QList<BuildTargetInfo> targets = Utils::transform(m_metadata.bin, [&](const QString &bin){
|
QList<BuildTargetInfo> targets = Utils::transform(metadata.bin, [&](const QString &bin){
|
||||||
BuildTargetInfo info = {};
|
BuildTargetInfo info = {};
|
||||||
info.displayName = bin;
|
info.displayName = bin;
|
||||||
info.targetFilePath = binDir.pathAppended(bin);
|
info.targetFilePath = binDir.pathAppended(bin);
|
||||||
@@ -187,11 +187,6 @@ std::vector<NimbleTask> NimbleBuildSystem::tasks() const
|
|||||||
return m_tasks;
|
return m_tasks;
|
||||||
}
|
}
|
||||||
|
|
||||||
NimbleMetadata NimbleBuildSystem::metadata() const
|
|
||||||
{
|
|
||||||
return m_metadata;
|
|
||||||
}
|
|
||||||
|
|
||||||
void NimbleBuildSystem::saveSettings()
|
void NimbleBuildSystem::saveSettings()
|
||||||
{
|
{
|
||||||
// only handles nimble specific settings - NimProjectScanner handles general settings
|
// only handles nimble specific settings - NimProjectScanner handles general settings
|
||||||
|
@@ -61,7 +61,6 @@ public:
|
|||||||
NimbleBuildSystem(ProjectExplorer::Target *target);
|
NimbleBuildSystem(ProjectExplorer::Target *target);
|
||||||
|
|
||||||
std::vector<NimbleTask> tasks() const;
|
std::vector<NimbleTask> tasks() const;
|
||||||
NimbleMetadata metadata() const;
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void tasksChanged();
|
void tasksChanged();
|
||||||
@@ -86,7 +85,6 @@ private:
|
|||||||
|
|
||||||
void triggerParsing() final;
|
void triggerParsing() final;
|
||||||
|
|
||||||
NimbleMetadata m_metadata;
|
|
||||||
std::vector<NimbleTask> m_tasks;
|
std::vector<NimbleTask> m_tasks;
|
||||||
|
|
||||||
NimProjectScanner m_projectScanner;
|
NimProjectScanner m_projectScanner;
|
||||||
|
Reference in New Issue
Block a user