mirror of
https://github.com/esphome/esphome.git
synced 2025-07-30 07:06:38 +00:00
unused
This commit is contained in:
parent
7f25d3e6d3
commit
e17fef3208
@ -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<uint32_t>(str.size());
|
||||
total_size += field_id_size + varint(str_size) + str_size;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user