1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00:00

remove dead code

This commit is contained in:
J. Nick Koston
2025-10-28 15:39:14 -05:00
parent 04533bdc5b
commit 75b1936d71

View File

@@ -288,6 +288,9 @@ class ProtoWriteBuffer {
// Common case: uint32_t values (field IDs, lengths, most integers)
void encode_varint(uint32_t value) { this->encode_varint(static_cast<uint64_t>(value)); }
// size_t overload to avoid ambiguity on different platforms
void encode_varint(size_t value) { this->encode_varint(static_cast<uint64_t>(value)); }
// Rare case: ProtoVarInt wrapper
void encode_varint(ProtoVarInt value) { this->encode_varint(value.as_uint64()); }
/**