mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	remove dead code
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user