remove dead code

This commit is contained in:
J. Nick Koston 2025-07-08 10:11:24 -06:00
parent defa452aa1
commit cb67010574
No known key found for this signature in database
2 changed files with 1 additions and 11 deletions

View File

@ -376,6 +376,7 @@ esphome/components/rp2040_pwm/* @jesserockz
esphome/components/rpi_dpi_rgb/* @clydebarrow
esphome/components/rtl87xx/* @kuba2k2
esphome/components/rtttl/* @glmnet
esphome/components/runtime_stats/* @bdraco
esphome/components/safe_mode/* @jsuanet @kbx81 @paulmonigatti
esphome/components/scd4x/* @martgras @sjtrny
esphome/components/script/* @esphome/core

View File

@ -6,8 +6,6 @@ import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.const import CONF_ID
DEPENDENCIES = []
CONF_LOG_INTERVAL = "log_interval"
runtime_stats_ns = cg.esphome_ns.namespace("runtime_stats")
@ -23,15 +21,6 @@ CONFIG_SCHEMA = cv.Schema(
)
def FILTER_SOURCE_FILES() -> list[str]:
"""Filter out runtime_stats.cpp when not enabled."""
# When runtime_stats component is not included in the configuration,
# we don't want to compile runtime_stats.cpp
# This function is called when the component IS included, so we return
# an empty list to include all source files
return []
async def to_code(config):
"""Generate code for the runtime statistics component."""
# Define USE_RUNTIME_STATS when this component is used