Skip to content

Commit

Permalink
Remove no longer used APS/Zigbee decoding codepath. (#13524)
Browse files Browse the repository at this point in the history
Everything is using the IM code now.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Dec 12, 2023
1 parent 1a4e694 commit 2440232
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 563 deletions.
2 changes: 0 additions & 2 deletions examples/all-clusters-app/mbed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ target_sources(${APP_TARGET} PRIVATE
${APP_UTIL}/ember-print.cpp
${APP_UTIL}/ember-compatibility-functions.cpp
${APP_UTIL}/message.cpp
${APP_UTIL}/process-cluster-message.cpp
${APP_UTIL}/process-global-message.cpp
${APP_UTIL}/util.cpp
${APP_UTIL}/error-mapping.cpp

Expand Down
2 changes: 0 additions & 2 deletions examples/lighting-app/mbed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ target_sources(${APP_TARGET} PRIVATE
${CHIP_ROOT}/src/app/util/ember-print.cpp
${CHIP_ROOT}/src/app/util/error-mapping.cpp
${CHIP_ROOT}/src/app/util/message.cpp
${CHIP_ROOT}/src/app/util/process-cluster-message.cpp
${CHIP_ROOT}/src/app/util/process-global-message.cpp
${CHIP_ROOT}/src/app/util/util.cpp
${CHIP_ROOT}/src/app/server/EchoHandler.cpp
${CHIP_ROOT}/src/app/server/Dnssd.cpp
Expand Down
2 changes: 0 additions & 2 deletions examples/lighting-app/telink/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ target_sources(app PRIVATE
${CHIP_ROOT}/src/app/util/ember-print.cpp
${CHIP_ROOT}/src/app/util/error-mapping.cpp
${CHIP_ROOT}/src/app/util/message.cpp
${CHIP_ROOT}/src/app/util/process-cluster-message.cpp
${CHIP_ROOT}/src/app/util/process-global-message.cpp
${CHIP_ROOT}/src/app/util/util.cpp
${CHIP_ROOT}/src/app/server/EchoHandler.cpp
${CHIP_ROOT}/src/app/server/Dnssd.cpp
Expand Down
2 changes: 0 additions & 2 deletions examples/lock-app/mbed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ target_sources(${APP_TARGET} PRIVATE
${CHIP_ROOT}/src/app/util/ember-print.cpp
${CHIP_ROOT}/src/app/util/error-mapping.cpp
${CHIP_ROOT}/src/app/util/message.cpp
${CHIP_ROOT}/src/app/util/process-cluster-message.cpp
${CHIP_ROOT}/src/app/util/process-global-message.cpp
${CHIP_ROOT}/src/app/util/util.cpp
${CHIP_ROOT}/src/app/server/EchoHandler.cpp
${CHIP_ROOT}/src/app/server/Dnssd.cpp
Expand Down
1 change: 0 additions & 1 deletion src/app/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ static_library("app") {
"TimedRequest.h",
"WriteClient.cpp",
"WriteHandler.cpp",
"decoder.cpp",
"encoder-common.cpp",
"reporting/Engine.cpp",
"reporting/Engine.h",
Expand Down
17 changes: 0 additions & 17 deletions src/app/chip-zcl-zpro-codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,6 @@ typedef struct
uint8_t radius;
} EmberApsFrame;

/** @brief Extracts an aps frame from buffer into outApsFrame
* @param buffer Buffer to read from
* @param buf_length Length of buffer
* @param outApsFrame Pointer to EmberApsFrame struct to read into
* @return returns the number of bytes that were consumed to read out the EmberApsFrame. 0 means an error was encountered
*/
uint16_t extractApsFrame(uint8_t * buffer, uint16_t buf_length, EmberApsFrame * outApsFrame);

/** @brief Populates msg with address of the zcl message within buffer.
* @return Returns the length of msg buffer. Returns 0 on error e.g. if buffer is too short.
*/
uint16_t extractMessage(uint8_t * buffer, uint16_t buffer_length, uint8_t ** msg);

/** @brief Prints an aps frame struct
*/
void printApsFrame(EmberApsFrame * frame);

/**
* @brief Encode an APS frame into the given buffer. Returns the number of
* bytes of buffer used by the encoding or 0 if the given buffer is not big
Expand Down
2 changes: 0 additions & 2 deletions src/app/chip_data_model.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ function(chip_configure_data_model APP_TARGET)
${CHIP_APP_BASE_DIR}/util/ember-print.cpp
${CHIP_APP_BASE_DIR}/util/error-mapping.cpp
${CHIP_APP_BASE_DIR}/util/message.cpp
${CHIP_APP_BASE_DIR}/util/process-cluster-message.cpp
${CHIP_APP_BASE_DIR}/util/process-global-message.cpp
${CHIP_APP_BASE_DIR}/util/util.cpp
)
endfunction()
2 changes: 0 additions & 2 deletions src/app/chip_data_model.gni
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ template("chip_data_model") {
"${_app_root}/util/ember-print.cpp",
"${_app_root}/util/error-mapping.cpp",
"${_app_root}/util/message.cpp",
"${_app_root}/util/process-cluster-message.cpp",
"${_app_root}/util/process-global-message.cpp",
"${_app_root}/util/util.cpp",
"${chip_root}/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp",
]
Expand Down
85 changes: 0 additions & 85 deletions src/app/decoder.cpp

This file was deleted.

102 changes: 0 additions & 102 deletions src/app/util/process-cluster-message.cpp

This file was deleted.

Loading

0 comments on commit 2440232

Please sign in to comment.