summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/buildtool/execution_engine/dag/dag.cpp29
-rw-r--r--src/buildtool/execution_engine/dag/dag.hpp16
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(),