diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-10 14:42:00 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-12 15:43:37 +0200 |
commit | a897c9ffb09a0d225f0f9093b01adbec2bbd3412 (patch) | |
tree | dcef1248b33773516a4d78384d48a409a3f64df7 /src/buildtool/execution_engine/dag/dag.cpp | |
parent | c4783953004ce5a8426e8eff94ac653a28c358b1 (diff) | |
download | justbuild-a897c9ffb09a0d225f0f9093b01adbec2bbd3412.tar.gz |
DAG: remove unused methods
Diffstat (limited to 'src/buildtool/execution_engine/dag/dag.cpp')
-rw-r--r-- | src/buildtool/execution_engine/dag/dag.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/buildtool/execution_engine/dag/dag.cpp b/src/buildtool/execution_engine/dag/dag.cpp index 03dc932f..b1f4dbcd 100644 --- a/src/buildtool/execution_engine/dag/dag.cpp +++ b/src/buildtool/execution_engine/dag/dag.cpp @@ -249,32 +249,3 @@ auto DependencyGraph::ArtifactWithId( } return std::nullopt; } - -[[nodiscard]] auto DependencyGraph::ActionWithId( - ActionIdentifier const& id) const noexcept -> std::optional<Action> { - auto const* node = ActionNodeWithId(id); - if (node != nullptr) { - return node->Content(); - } - return std::nullopt; -} - -auto DependencyGraph::ActionOfArtifactWithId( - ArtifactIdentifier const& artifact_id) const noexcept - -> std::optional<Action> { - auto const* node = ActionNodeOfArtifactWithId(artifact_id); - if (node != nullptr) { - return node->Content(); - } - return std::nullopt; -} - -auto DependencyGraph::ActionIdOfArtifactWithId( - ArtifactIdentifier const& artifact_id) const noexcept - -> std::optional<ActionIdentifier> { - auto const& action = ActionOfArtifactWithId(artifact_id); - if (action) { - return action->Id(); - } - return std::nullopt; -} |