mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Message: Remove ArrayRef-taking ExecuteRpc/RpcResponse.
This commit is contained in:
@@ -203,13 +203,6 @@ std::shared_ptr<Message> Message::EntryDelete(unsigned int id) {
|
||||
return msg;
|
||||
}
|
||||
|
||||
std::shared_ptr<Message> Message::ExecuteRpc(unsigned int id, unsigned int uid,
|
||||
llvm::ArrayRef<Value> params) {
|
||||
WireEncoder enc(0x0300);
|
||||
for (auto& param : params) enc.WriteValue(param);
|
||||
return ExecuteRpc(id, uid, enc.ToStringRef());
|
||||
}
|
||||
|
||||
std::shared_ptr<Message> Message::ExecuteRpc(unsigned int id, unsigned int uid,
|
||||
llvm::StringRef params) {
|
||||
auto msg = std::make_shared<Message>(kExecuteRpc, private_init());
|
||||
@@ -219,13 +212,6 @@ std::shared_ptr<Message> Message::ExecuteRpc(unsigned int id, unsigned int uid,
|
||||
return msg;
|
||||
}
|
||||
|
||||
std::shared_ptr<Message> Message::RpcResponse(
|
||||
unsigned int id, unsigned int uid, llvm::ArrayRef<Value> results) {
|
||||
WireEncoder enc(0x0300);
|
||||
for (auto& result : results) enc.WriteValue(result);
|
||||
return RpcResponse(id, uid, enc.ToStringRef());
|
||||
}
|
||||
|
||||
std::shared_ptr<Message> Message::RpcResponse(unsigned int id, unsigned int uid,
|
||||
llvm::StringRef results) {
|
||||
auto msg = std::make_shared<Message>(kRpcResponse, private_init());
|
||||
|
||||
Reference in New Issue
Block a user