summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/serve_service/source_tree.cpp
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2023-10-05 18:22:39 +0200
committerAlberto Sartori <alberto.sartori@huawei.com>2023-10-06 12:34:23 +0200
commitf0fe744acf283ee027e8483d00fdb65263aac698 (patch)
tree4a9252092d4ef7e775186ce5b4efe1d4e011b9f3 /src/buildtool/serve_api/serve_service/source_tree.cpp
parent863827868f7ae64b71af20367b9068e53478c033 (diff)
downloadjustbuild-f0fe744acf283ee027e8483d00fdb65263aac698.tar.gz
CreateExecutionApi: define a new library to avoid code duplication
Diffstat (limited to 'src/buildtool/serve_api/serve_service/source_tree.cpp')
-rw-r--r--src/buildtool/serve_api/serve_service/source_tree.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/buildtool/serve_api/serve_service/source_tree.cpp b/src/buildtool/serve_api/serve_service/source_tree.cpp
index 69a7a607..cb3f6220 100644
--- a/src/buildtool/serve_api/serve_service/source_tree.cpp
+++ b/src/buildtool/serve_api/serve_service/source_tree.cpp
@@ -24,19 +24,6 @@
#include "src/buildtool/serve_api/remote/config.hpp"
#include "src/buildtool/storage/config.hpp"
-auto SourceTreeService::CreateExecutionApi(
- std::optional<ServerAddress> const& address)
- -> gsl::not_null<IExecutionApi::Ptr> {
- if (address) {
- ExecutionConfiguration config;
- config.skip_cache_lookup = false;
-
- return std::make_unique<BazelApi>(
- "remote-execution", address->host, address->port, config);
- }
- return std::make_unique<LocalApi>();
-}
-
auto SourceTreeService::GetTreeFromCommit(
std::filesystem::path const& repo_path,
std::string const& commit,