summaryrefslogtreecommitdiff
path: root/src/buildtool/common/repository_config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/common/repository_config.cpp')
-rw-r--r--src/buildtool/common/repository_config.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/buildtool/common/repository_config.cpp b/src/buildtool/common/repository_config.cpp
index 9561f10b..e47fc8d3 100644
--- a/src/buildtool/common/repository_config.cpp
+++ b/src/buildtool/common/repository_config.cpp
@@ -172,28 +172,3 @@ void RepositoryConfig::SetPrecomputedRoot(PrecomputedRoot const& root,
}
}
}
-
-void RepositoryConfig::SetComputedRoot(FileRoot::ComputedRoot const& root,
- FileRoot const& value) {
- for (auto const& [name, desc] : repos_) {
- auto new_info = desc.info;
- bool changed = false;
- auto set_root_if_matching =
- [&changed, &root, &value](auto* candidate_root) {
- auto croot = candidate_root->GetComputedDescription();
- if (croot) {
- if (*croot == root) {
- *candidate_root = value;
- changed = true;
- }
- }
- };
- set_root_if_matching(&new_info.workspace_root);
- set_root_if_matching(&new_info.target_root);
- set_root_if_matching(&new_info.rule_root);
- set_root_if_matching(&new_info.expression_root);
- if (changed) {
- SetInfo(name, std::move(new_info));
- }
- }
-}