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 | |
parent | c4783953004ce5a8426e8eff94ac653a28c358b1 (diff) | |
download | justbuild-a897c9ffb09a0d225f0f9093b01adbec2bbd3412.tar.gz |
DAG: remove unused methods
-rw-r--r-- | src/buildtool/execution_engine/dag/dag.cpp | 29 | ||||
-rw-r--r-- | src/buildtool/execution_engine/dag/dag.hpp | 16 |
2 files changed, 0 insertions, 45 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; -} diff --git a/src/buildtool/execution_engine/dag/dag.hpp b/src/buildtool/execution_engine/dag/dag.hpp index b52e5beb..d5c96b2e 100644 --- a/src/buildtool/execution_engine/dag/dag.hpp +++ b/src/buildtool/execution_engine/dag/dag.hpp @@ -415,11 +415,6 @@ class DependencyGraph : DirectedAcyclicGraph { return NodePaths(output_dirs_); } - [[nodiscard]] auto OutputDirIds() const - -> std::vector<ArtifactIdentifier> { - return Ids(output_dirs_); - } - [[nodiscard]] auto DependencyPaths() const -> std::vector<Action::LocalPath> { return NodePaths(dependencies_); @@ -577,17 +572,6 @@ class DependencyGraph : DirectedAcyclicGraph { [[nodiscard]] auto ArtifactWithId( ArtifactIdentifier const& id) const noexcept -> std::optional<Artifact>; - [[nodiscard]] auto ActionWithId(ActionIdentifier const& id) const noexcept - -> std::optional<Action>; - - [[nodiscard]] auto ActionOfArtifactWithId( - ArtifactIdentifier const& artifact_id) const noexcept - -> std::optional<Action>; - - [[nodiscard]] auto ActionIdOfArtifactWithId( - ArtifactIdentifier const& artifact_id) const noexcept - -> std::optional<ActionIdentifier>; - [[nodiscard]] auto IsValid() const noexcept -> bool { return std::all_of( artifact_nodes_.begin(), |