From 50ffe4b9465ab580304ff75b0b9a6aeac7900c8a Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Sat, 5 Oct 2024 09:14:04 -0400 Subject: [PATCH] openthread: apply clang-format suggestions --- esphome/components/mdns/mdns_component.cpp | 5 +---- esphome/components/openthread/openthread.cpp | 4 +--- esphome/components/openthread/openthread_esp.cpp | 1 - esphome/components/openthread/openthread_esp.h | 1 - 4 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 esphome/components/openthread/openthread_esp.h diff --git a/esphome/components/mdns/mdns_component.cpp b/esphome/components/mdns/mdns_component.cpp index a3ffd7722e..6a4a89c815 100644 --- a/esphome/components/mdns/mdns_component.cpp +++ b/esphome/components/mdns/mdns_component.cpp @@ -126,10 +126,7 @@ void MDNSComponent::dump_config() { } } -std::vector MDNSComponent::get_services() { - return this->services_; -} - +std::vector MDNSComponent::get_services() { return this->services_; } } // namespace mdns } // namespace esphome diff --git a/esphome/components/openthread/openthread.cpp b/esphome/components/openthread/openthread.cpp index 1fe3b63826..834eb92a57 100644 --- a/esphome/components/openthread/openthread.cpp +++ b/esphome/components/openthread/openthread.cpp @@ -1,8 +1,6 @@ #include "openthread.h" -#ifdef USE_ESP_IDF -#include "openthread_esp.h" -#else +#ifndef USE_ESP_IDF #error "OpenThread is not supported on this platform" #endif diff --git a/esphome/components/openthread/openthread_esp.cpp b/esphome/components/openthread/openthread_esp.cpp index abc10330e8..9bdb4fcee2 100644 --- a/esphome/components/openthread/openthread_esp.cpp +++ b/esphome/components/openthread/openthread_esp.cpp @@ -1,5 +1,4 @@ // #ifdef USE_ESP_IDF -#include "openthread_esp.h" #include "openthread.h" #include diff --git a/esphome/components/openthread/openthread_esp.h b/esphome/components/openthread/openthread_esp.h deleted file mode 100644 index 6f70f09bee..0000000000 --- a/esphome/components/openthread/openthread_esp.h +++ /dev/null @@ -1 +0,0 @@ -#pragma once