From c33c14a46f62294a5f5306662b9a09967d00efcd Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 1 Jul 2025 11:57:02 -0500 Subject: [PATCH] tidy --- esphome/components/api/api_connection.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/api/api_connection.h b/esphome/components/api/api_connection.h index 642c11bc9f..151369aa70 100644 --- a/esphome/components/api/api_connection.h +++ b/esphome/components/api/api_connection.h @@ -517,7 +517,7 @@ class APIConnection : public APIServerConnection { private: // Helper to cleanup items from the beginning - void cleanup_items(size_t count) { + void cleanup_items_(size_t count) { for (size_t i = 0; i < count; i++) { items[i].creator.cleanup(items[i].message_type); } @@ -541,14 +541,14 @@ class APIConnection : public APIServerConnection { // Clear all items with proper cleanup void clear() { - cleanup_items(items.size()); + cleanup_items_(items.size()); items.clear(); batch_start_time = 0; } // Remove processed items from the front with proper cleanup void remove_front(size_t count) { - cleanup_items(count); + cleanup_items_(count); items.erase(items.begin(), items.begin() + count); }