From 5fe319fcc56217c38e47b206b00784691bba1b79 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 11 Oct 2025 15:33:22 -1000 Subject: [PATCH] preen --- esphome/core/helpers.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/esphome/core/helpers.cpp b/esphome/core/helpers.cpp index cabd9ffd16..2d8122699b 100644 --- a/esphome/core/helpers.cpp +++ b/esphome/core/helpers.cpp @@ -237,12 +237,6 @@ std::string str_sprintf(const char *fmt, ...) { // Maximum size for name with suffix: 120 (max friendly name) + 1 (separator) + 6 (MAC suffix) + 1 (null term) static constexpr size_t MAX_NAME_WITH_SUFFIX_SIZE = 128; -// MAC address suffix length (last 6 characters of 12-char MAC address string) -static constexpr size_t MAC_ADDRESS_SUFFIX_LEN = 6; -// Full MAC address string length (lowercase hex without separators) -static constexpr size_t MAC_ADDRESS_LEN = 12; -// ".local" suffix length for mDNS hostnames -static constexpr size_t MDNS_LOCAL_SUFFIX_LEN = 5; std::string make_name_with_suffix(const std::string &name, char sep, const char *suffix_ptr, size_t suffix_len) { char buffer[MAX_NAME_WITH_SUFFIX_SIZE];