From e17fef3208da7f4ac6d6988e00472754e953d686 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 21 Jul 2025 19:50:41 -1000 Subject: [PATCH] unused --- esphome/components/api/proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/api/proto.h b/esphome/components/api/proto.h index 3f11222b19..8d83970b22 100644 --- a/esphome/components/api/proto.h +++ b/esphome/components/api/proto.h @@ -689,7 +689,7 @@ class ProtoSize { * @brief Calculates and adds the size of a string/bytes field to the total message size (repeated field version) */ static inline void add_string_field_repeated(uint32_t &total_size, uint32_t field_id_size, const std::string &str) { - // Always calculate size for repeated fields (no empty check) + // Always calculate size for repeated fields const uint32_t str_size = static_cast(str.size()); total_size += field_id_size + varint(str_size) + str_size; }