From 9bd81567cf58c22b713c3af9f0854ede96614050 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Fri, 26 Jul 2024 09:44:40 -0700 Subject: [PATCH] Remove deprecated .deseralize() fn PiperOrigin-RevId: 656433799 --- src/google/protobuf/compiler/rust/message.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/google/protobuf/compiler/rust/message.cc b/src/google/protobuf/compiler/rust/message.cc index fda9f6266d..a6dca4b460 100644 --- a/src/google/protobuf/compiler/rust/message.cc +++ b/src/google/protobuf/compiler/rust/message.cc @@ -1192,10 +1192,6 @@ void GenerateRs(Context& ctx, const Descriptor& msg) { $raw_arena_getter_for_message$ - #[deprecated = "Prefer Msg::parse(), or use the new name 'clear_and_parse' to parse into a pre-existing message."] - pub fn deserialize(&mut self, data: &[u8]) -> Result<(), $pb$::ParseError> { - self.clear_and_parse(data) - } pub fn clear_and_parse(&mut self, data: &[u8]) -> Result<(), $pb$::ParseError> { $Msg::clear_and_parse$ }