From ecd27c42352431c8324335f762d2d5c71cfc2729 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 8 Dec 2023 17:27:03 -0500 Subject: [PATCH] Remove unused files from `src/app/zap-templates/zcl/data-model/draft/` (#30895) * Remove files that do not seem to contain any used types. Trying to make sure drafts is clean (as we have all clusters in draft already deprecated) * Remove one more unused file * Remove all draft types - since they have no associated cluster id, it is unclear to me if we ever use them * Update comment a bit --------- Co-authored-by: Andrei Litvin --- ...at-user-interface-configuration-server.cpp | 5 +- .../EN50523-appliance-identification.xml | 34 -------- .../data-model/draft/meter-identification.xml | 33 -------- .../draft/types/ballast-configuration.xml | 25 ------ .../draft/types/dehumidification-control.xml | 31 -------- .../zcl/data-model/draft/types/door-lock.xml | 78 ------------------- .../draft/types/illuminance-level-sensing.xml | 22 ------ .../types/onoff-switch-configuration.xml | 28 ------- .../data-model/draft/types/power-profile.xml | 35 --------- ...hermostat-user-interface-configuration.xml | 31 -------- .../zcl/data-model/draft/types/thermostat.xml | 43 ---------- 11 files changed, 1 insertion(+), 364 deletions(-) delete mode 100644 src/app/zap-templates/zcl/data-model/draft/EN50523-appliance-identification.xml delete mode 100644 src/app/zap-templates/zcl/data-model/draft/meter-identification.xml delete mode 100644 src/app/zap-templates/zcl/data-model/draft/types/ballast-configuration.xml delete mode 100644 src/app/zap-templates/zcl/data-model/draft/types/dehumidification-control.xml delete mode 100644 src/app/zap-templates/zcl/data-model/draft/types/door-lock.xml delete mode 100644 src/app/zap-templates/zcl/data-model/draft/types/illuminance-level-sensing.xml delete mode 100644 src/app/zap-templates/zcl/data-model/draft/types/onoff-switch-configuration.xml delete mode 100644 src/app/zap-templates/zcl/data-model/draft/types/power-profile.xml delete mode 100644 src/app/zap-templates/zcl/data-model/draft/types/thermostat-user-interface-configuration.xml delete mode 100644 src/app/zap-templates/zcl/data-model/draft/types/thermostat.xml diff --git a/src/app/clusters/thermostat-user-interface-configuration-server/thermostat-user-interface-configuration-server.cpp b/src/app/clusters/thermostat-user-interface-configuration-server/thermostat-user-interface-configuration-server.cpp index af13619a85365c..25e0edc034a855 100644 --- a/src/app/clusters/thermostat-user-interface-configuration-server/thermostat-user-interface-configuration-server.cpp +++ b/src/app/clusters/thermostat-user-interface-configuration-server/thermostat-user-interface-configuration-server.cpp @@ -26,10 +26,7 @@ using namespace chip::app::Clusters::ThermostatUserInterfaceConfiguration; using chip::Protocols::InteractionModel::Status; namespace { -// -// Those types are defined as drafts in -// src/app/zap-templates/zcl/data-model/draft/types/thermostat-user-interface-configuration.xml -// + enum class TemperatureDisplayMode : uint8_t { kCelsius = 0x0, diff --git a/src/app/zap-templates/zcl/data-model/draft/EN50523-appliance-identification.xml b/src/app/zap-templates/zcl/data-model/draft/EN50523-appliance-identification.xml deleted file mode 100644 index 3e18ec7343171b..00000000000000 --- a/src/app/zap-templates/zcl/data-model/draft/EN50523-appliance-identification.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/app/zap-templates/zcl/data-model/draft/meter-identification.xml b/src/app/zap-templates/zcl/data-model/draft/meter-identification.xml deleted file mode 100644 index 7cd304194793e0..00000000000000 --- a/src/app/zap-templates/zcl/data-model/draft/meter-identification.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/app/zap-templates/zcl/data-model/draft/types/ballast-configuration.xml b/src/app/zap-templates/zcl/data-model/draft/types/ballast-configuration.xml deleted file mode 100644 index c31350d60223e9..00000000000000 --- a/src/app/zap-templates/zcl/data-model/draft/types/ballast-configuration.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - diff --git a/src/app/zap-templates/zcl/data-model/draft/types/dehumidification-control.xml b/src/app/zap-templates/zcl/data-model/draft/types/dehumidification-control.xml deleted file mode 100644 index 2f5d6b5d960963..00000000000000 --- a/src/app/zap-templates/zcl/data-model/draft/types/dehumidification-control.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/src/app/zap-templates/zcl/data-model/draft/types/door-lock.xml b/src/app/zap-templates/zcl/data-model/draft/types/door-lock.xml deleted file mode 100644 index f54aa998c937e0..00000000000000 --- a/src/app/zap-templates/zcl/data-model/draft/types/door-lock.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/app/zap-templates/zcl/data-model/draft/types/illuminance-level-sensing.xml b/src/app/zap-templates/zcl/data-model/draft/types/illuminance-level-sensing.xml deleted file mode 100644 index 04eedca71a1038..00000000000000 --- a/src/app/zap-templates/zcl/data-model/draft/types/illuminance-level-sensing.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - diff --git a/src/app/zap-templates/zcl/data-model/draft/types/onoff-switch-configuration.xml b/src/app/zap-templates/zcl/data-model/draft/types/onoff-switch-configuration.xml deleted file mode 100644 index 6e696a6bfb5bc2..00000000000000 --- a/src/app/zap-templates/zcl/data-model/draft/types/onoff-switch-configuration.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/app/zap-templates/zcl/data-model/draft/types/power-profile.xml b/src/app/zap-templates/zcl/data-model/draft/types/power-profile.xml deleted file mode 100644 index 5e68d974fa182e..00000000000000 --- a/src/app/zap-templates/zcl/data-model/draft/types/power-profile.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/app/zap-templates/zcl/data-model/draft/types/thermostat-user-interface-configuration.xml b/src/app/zap-templates/zcl/data-model/draft/types/thermostat-user-interface-configuration.xml deleted file mode 100644 index 060490580fb268..00000000000000 --- a/src/app/zap-templates/zcl/data-model/draft/types/thermostat-user-interface-configuration.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/src/app/zap-templates/zcl/data-model/draft/types/thermostat.xml b/src/app/zap-templates/zcl/data-model/draft/types/thermostat.xml deleted file mode 100644 index 9264e13176db0d..00000000000000 --- a/src/app/zap-templates/zcl/data-model/draft/types/thermostat.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -