1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

remove dead code

This commit is contained in:
J. Nick Koston
2025-07-08 10:11:24 -06:00
parent defa452aa1
commit cb67010574
2 changed files with 1 additions and 11 deletions

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