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.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/buildtool/serve_api/serve_service/source_tree.hpp') diff --git a/src/buildtool/serve_api/serve_service/source_tree.hpp b/src/buildtool/serve_api/serve_service/source_tree.hpp index 0bdf48b8..089844a1 100644 --- a/src/buildtool/serve_api/serve_service/source_tree.hpp +++ b/src/buildtool/serve_api/serve_service/source_tree.hpp @@ -24,6 +24,7 @@ #include "gsl/gsl" #include "justbuild/just_serve/just_serve.grpc.pb.h" #include "src/buildtool/common/remote/remote_common.hpp" +#include "src/buildtool/execution_api/common/create_execution_api.hpp" #include "src/buildtool/execution_api/common/execution_api.hpp" #include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/logging/logger.hpp" @@ -57,10 +58,6 @@ class SourceTreeService final gsl::not_null const local_api_{ CreateExecutionApi(std::nullopt)}; - [[nodiscard]] static auto CreateExecutionApi( - std::optional const& address) - -> gsl::not_null; - [[nodiscard]] static auto GetTreeFromCommit( std::filesystem::path const& repo_path, std::string const& commit, -- cgit v1.2.3