pw_rpc: Remove deprecated ServerContext& argument
The ServerContext& argument has been deprecated for a while. Remove it
to simplify the pw_rpc interface and reduce code size.
Requires: pigweed:70300
Requires: pigweed:70320
Requires: pigweed-internal:18220
Change-Id: If43f2073ef476dc5aa63be08f6893e3255d6aebe
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/69920
Reviewed-by: Alexei Frolov <frolv@google.com>
diff --git a/pw_rpc/docs.rst b/pw_rpc/docs.rst
index 7745e95..14174d0 100644
--- a/pw_rpc/docs.rst
+++ b/pw_rpc/docs.rst
@@ -207,15 +207,13 @@
class TheService : public pw_rpc::nanopb::TheService::Service<TheService> {
public:
- pw::Status MethodOne(ServerContext&,
- const foo_bar_Request& request,
+ pw::Status MethodOne(const foo_bar_Request& request,
foo_bar_Response& response) {
// implementation
return pw::OkStatus();
}
- void MethodTwo(ServerContext&,
- const foo_bar_Request& request,
+ void MethodTwo(const foo_bar_Request& request,
ServerWriter<foo_bar_Response>& response) {
// implementation
response.Write(foo_bar_Response{.number = 123});
@@ -430,7 +428,7 @@
namespace pw::file {
class FileSystemService : public pw_rpc::raw::FileSystem::Service<FileSystemService> {
- void List(ServerContext&, ConstByteSpan request, RawServerWriter& writer);
+ void List(ConstByteSpan request, RawServerWriter& writer);
};
}