From af36ec3931067d40f0552a8d5610cc9d35f91bbc Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 17 Sep 2024 10:17:56 +0200 Subject: Remove ByteStreamClient::{Read, Write}Many ...since they were used only in tests. --- .../remote/bazel/bytestream_client.hpp | 28 ---------------------- 1 file changed, 28 deletions(-) (limited to 'src') diff --git a/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp b/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp index 04f88dda..d5485c9f 100644 --- a/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp +++ b/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp @@ -17,12 +17,10 @@ #include #include -#include #include #include #include #include // std::move -#include #include "google/bytestream/bytestream.grpc.pb.h" #include "gsl/gsl" @@ -174,32 +172,6 @@ class ByteStreamClient { } } - template - void ReadMany( - std::vector const& inputs, - std::function const& to_resource_name, - std::function const& parse_data) const noexcept { - for (auto const& i : inputs) { - auto data = Read(to_resource_name(i)); - if (data) { - parse_data(std::move(*data)); - } - } - } - - template - [[nodiscard]] auto WriteMany( - std::vector const& inputs, - std::function const& to_resource_name, - std::function const& to_data) - const noexcept -> bool { - return std::all_of(inputs.begin(), - inputs.end(), - [this, &to_resource_name, &to_data](auto const& i) { - return Write(to_resource_name(i), to_data(i)); - }); - } - private: std::unique_ptr stub_; Logger logger_{"ByteStreamClient"}; -- cgit v1.2.3