summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-17 10:17:56 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-09-18 09:45:19 +0200
commitaf36ec3931067d40f0552a8d5610cc9d35f91bbc (patch)
tree5ff07155050438176ad3f1431d991c37d9c5f5eb /src
parent2669a27e7322772ff366662ccc5e9f02cedf70bd (diff)
downloadjustbuild-af36ec3931067d40f0552a8d5610cc9d35f91bbc.tar.gz
Remove ByteStreamClient::{Read, Write}Many
...since they were used only in tests.
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bytestream_client.hpp28
1 files changed, 0 insertions, 28 deletions
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 <algorithm>
#include <cstddef>
-#include <functional>
#include <iomanip>
#include <optional>
#include <string>
#include <utility> // std::move
-#include <vector>
#include "google/bytestream/bytestream.grpc.pb.h"
#include "gsl/gsl"
@@ -174,32 +172,6 @@ class ByteStreamClient {
}
}
- template <class T_Input>
- void ReadMany(
- std::vector<T_Input> const& inputs,
- std::function<std::string(T_Input const&)> const& to_resource_name,
- std::function<void(std::string)> 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 <class T_Input>
- [[nodiscard]] auto WriteMany(
- std::vector<T_Input> const& inputs,
- std::function<std::string(T_Input const&)> const& to_resource_name,
- std::function<std::string(T_Input const&)> 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<google::bytestream::ByteStream::Stub> stub_;
Logger logger_{"ByteStreamClient"};