From a897c9ffb09a0d225f0f9093b01adbec2bbd3412 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 10 Jul 2024 14:42:00 +0200 Subject: DAG: remove unused methods --- src/buildtool/execution_engine/dag/dag.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/buildtool/execution_engine/dag/dag.cpp') 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 { - 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 { - 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 { - auto const& action = ActionOfArtifactWithId(artifact_id); - if (action) { - return action->Id(); - } - return std::nullopt; -} -- cgit v1.2.3