[core] Inline ControllerRegistry::register_controller into header

Tiny one-liner, no reason to keep it in the .cpp.
This commit is contained in:
J. Nick Koston
2026-04-09 14:26:59 -10:00
parent 8791d9f26b
commit 4190ebebc9
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -6,8 +6,6 @@ namespace esphome {
StaticVector<Controller *, CONTROLLER_REGISTRY_MAX> ControllerRegistry::controllers;
void ControllerRegistry::register_controller(Controller *controller) { controllers.push_back(controller); }
} // namespace esphome
#endif // USE_CONTROLLER_REGISTRY
+1 -1
View File
@@ -34,7 +34,7 @@ class ControllerRegistry {
* Controllers should call this in their setup() method.
* Typically only APIServer and WebServer register.
*/
static void register_controller(Controller *controller);
static void register_controller(Controller *controller) { controllers.push_back(controller); }
// Notify method declarations (generated from entity_types.inc)
// NOLINTBEGIN(bugprone-macro-parentheses)