diff options
author | Bernhard Beschow <shentey@gmail.com> | 2020-12-17 11:36:58 +0100 |
---|---|---|
committer | Bernhard Beschow <shentey@gmail.com> | 2021-01-04 12:08:48 +0000 |
commit | f607f125f1b992a78130b70e7f7635b73a85b02d (patch) | |
tree | 569b458c52f45236b326b4eaf543ff8c6d79bd84 /src/plugins/nim | |
parent | faec8f09cb3bb9e4d92e17135f6d27ff61f5b9a8 (diff) |
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>
Diffstat (limited to 'src/plugins/nim')
-rw-r--r-- | src/plugins/nim/project/nimblebuildsystem.cpp | 11 | ||||
-rw-r--r-- | src/plugins/nim/project/nimblebuildsystem.h | 2 |
2 files changed, 3 insertions, 10 deletions
diff --git a/src/plugins/nim/project/nimblebuildsystem.cpp b/src/plugins/nim/project/nimblebuildsystem.cpp index a61c2eea32..7090bfabc4 100644 --- a/src/plugins/nim/project/nimblebuildsystem.cpp +++ b/src/plugins/nim/project/nimblebuildsystem.cpp @@ -153,11 +153,11 @@ void NimbleBuildSystem::updateProject() const FilePath projectDir = projectDirectory(); const FilePath nimble = Nim::nimblePathFromKit(kit()); - m_metadata = parseMetadata(nimble.toString(), projectDir.toString()); - const FilePath binDir = projectDir.pathAppended(m_metadata.binDir); + const NimbleMetadata metadata = parseMetadata(nimble.toString(), projectDir.toString()); + const FilePath binDir = projectDir.pathAppended(metadata.binDir); 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 = {}; info.displayName = bin; info.targetFilePath = binDir.pathAppended(bin); @@ -187,11 +187,6 @@ std::vector<NimbleTask> NimbleBuildSystem::tasks() const return m_tasks; } -NimbleMetadata NimbleBuildSystem::metadata() const -{ - return m_metadata; -} - void NimbleBuildSystem::saveSettings() { // only handles nimble specific settings - NimProjectScanner handles general settings diff --git a/src/plugins/nim/project/nimblebuildsystem.h b/src/plugins/nim/project/nimblebuildsystem.h index 5ab88a0090..7a81687ec7 100644 --- a/src/plugins/nim/project/nimblebuildsystem.h +++ b/src/plugins/nim/project/nimblebuildsystem.h @@ -61,7 +61,6 @@ public: NimbleBuildSystem(ProjectExplorer::Target *target); std::vector<NimbleTask> tasks() const; - NimbleMetadata metadata() const; signals: void tasksChanged(); @@ -86,7 +85,6 @@ private: void triggerParsing() final; - NimbleMetadata m_metadata; std::vector<NimbleTask> m_tasks; NimProjectScanner m_projectScanner; |