mirror of
https://github.com/esphome/esphome.git
synced 2025-11-20 08:46:01 +00:00
remove dead code
This commit is contained in:
@@ -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()); }
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user