diff --git a/esphome/core/scheduler.h b/esphome/core/scheduler.h index 13e36601e3..8dde00cff5 100644 --- a/esphome/core/scheduler.h +++ b/esphome/core/scheduler.h @@ -149,12 +149,6 @@ class Scheduler { // Cancel heap items (items_ and to_add_) bool cancel_heap_item_(Component *component, bool is_static_string, const void *name_ptr, SchedulerItem::Type type); -#if !defined(USE_ESP8266) && !defined(USE_RP2040) - // Cancel deferred items (defer_queue_) - bool cancel_deferred_item_(Component *component, bool is_static_string, const void *name_ptr, - SchedulerItem::Type type); -#endif - private: // Helper to execute a scheduler item void execute_item_(SchedulerItem *item);