From f0fe744acf283ee027e8483d00fdb65263aac698 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Thu, 5 Oct 2023 18:22:39 +0200 Subject: CreateExecutionApi: define a new library to avoid code duplication --- src/buildtool/serve_api/serve_service/source_tree.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/buildtool/serve_api/serve_service/source_tree.cpp') 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 const& address) - -> gsl::not_null { - if (address) { - ExecutionConfiguration config; - config.skip_cache_lookup = false; - - return std::make_unique( - "remote-execution", address->host, address->port, config); - } - return std::make_unique(); -} - auto SourceTreeService::GetTreeFromCommit( std::filesystem::path const& repo_path, std::string const& commit, -- cgit v1.2.3