From 3af1d50bce9c16a3c0be9929ed9674f160ca4e0f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 7 Sep 2026 11:09:18 +0200 Subject: [PATCH] [api] Trim the field free message test and a duplicated generator note --- script/api_protobuf/api_protobuf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/script/api_protobuf/api_protobuf.py b/script/api_protobuf/api_protobuf.py index c919d80295..b31ac7847c 100755 --- a/script/api_protobuf/api_protobuf.py +++ b/script/api_protobuf/api_protobuf.py @@ -2841,7 +2841,6 @@ def build_message_type( ) for line in encode ] - # Static over const void * so &T::encode_msg is a MessageEncodeFn without a thunk. o = f"{speed_attr}uint8_t *{desc.name}::encode_msg(const void *self, ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) {{\n" o += f" const auto &msg = *static_cast(self);\n" o += " uint8_t *__restrict__ pos = buffer.get_pos();\n"