From 8ab573ef1c624e2ed81b2032178c25451176d2f1 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 14 Feb 2025 15:16:10 +0100 Subject: ApiBundle: Remove HashFunction. And ensure every user obtains HashFunction from corresponding IExecutionApi --- test/utils/executor/test_api_bundle.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test/utils/executor/test_api_bundle.hpp') diff --git a/test/utils/executor/test_api_bundle.hpp b/test/utils/executor/test_api_bundle.hpp index 1661b8bf..97f917c4 100644 --- a/test/utils/executor/test_api_bundle.hpp +++ b/test/utils/executor/test_api_bundle.hpp @@ -16,18 +16,14 @@ #define INCLUDED_SRC_TEST_UTILS_EXECUTOR_TEST_API_BUNDLE_HPP #include "gsl/gsl" -#include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/execution_api/common/api_bundle.hpp" #include "src/buildtool/execution_api/common/execution_api.hpp" /// \brief Creates an ApiBundle that contains a given IExecutionApi -/// implementation. As only the hash_function field is actually needed, the -/// remote_context and repo_config are not needed to be provided. +/// implementation. [[nodiscard]] static auto CreateTestApiBundle( - HashFunction hash_function, gsl::not_null const& api) noexcept -> ApiBundle { - return ApiBundle{ - .hash_function = hash_function, .local = api, .remote = api}; + return ApiBundle{.local = api, .remote = api}; } #endif // INCLUDED_SRC_TEST_UTILS_EXECUTOR_TEST_API_BUNDLE_HPP -- cgit v1.2.3