Skip to content

Commit

Permalink
Remove an Unused error code and free up the value for future use. (#2…
Browse files Browse the repository at this point in the history
…5899)

* Remove an Unused error code and free up the value for future use. ERROR_CODES.md is generated

* Rerun the eror_table.py script specifying python3 instead
  • Loading branch information
jmartinez-silabs authored and pull[bot] committed Dec 18, 2023
1 parent 1aed51a commit ad9bbe5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
1 change: 0 additions & 1 deletion docs/ERROR_CODES.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ This file was **AUTOMATICALLY** generated by
| 49 | 0x31 | `CHIP_ERROR_INVALID_DATA_LIST` |
| 50 | 0x32 | `CHIP_ERROR_TIMEOUT` |
| 51 | 0x33 | `CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR` |
| 53 | 0x35 | `CHIP_ERROR_END_OF_INPUT` |
| 56 | 0x38 | `CHIP_ERROR_INVALID_PASE_PARAMETER` |
| 59 | 0x3B | `CHIP_ERROR_INVALID_USE_OF_SESSION_KEY` |
| 60 | 0x3C | `CHIP_ERROR_CONNECTION_CLOSED_UNEXPECTEDLY` |
Expand Down
3 changes: 0 additions & 3 deletions src/lib/core/CHIPError.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err)
case CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR.AsInteger():
desc = "Invalid device descriptor";
break;
case CHIP_END_OF_INPUT.AsInteger():
desc = "End of input";
break;
case CHIP_ERROR_INVALID_PASE_PARAMETER.AsInteger():
desc = "Invalid PASE parameter";
break;
Expand Down
12 changes: 1 addition & 11 deletions src/lib/core/CHIPError.h
Original file line number Diff line number Diff line change
Expand Up @@ -845,17 +845,7 @@ using CHIP_ERROR = ::chip::ChipError;
#define CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR CHIP_CORE_ERROR(0x33)

// AVAILABLE: 0x34

/**
* @def CHIP_END_OF_INPUT
*
* @brief
* An input ended.
*
*/
#define CHIP_ERROR_END_OF_INPUT CHIP_CORE_ERROR(0x35)
#define CHIP_END_OF_INPUT CHIP_ERROR_END_OF_INPUT

// AVAILABLE: 0x35
// AVAILABLE: 0x36
// AVAILABLE: 0x37

Expand Down
1 change: 0 additions & 1 deletion src/lib/core/tests/TestCHIPErrorStr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ static const CHIP_ERROR kTestElements[] =
CHIP_ERROR_INVALID_DATA_LIST,
CHIP_ERROR_TIMEOUT,
CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR,
CHIP_END_OF_INPUT,
CHIP_ERROR_INVALID_PASE_PARAMETER,
CHIP_ERROR_INVALID_USE_OF_SESSION_KEY,
CHIP_ERROR_CONNECTION_CLOSED_UNEXPECTEDLY,
Expand Down

0 comments on commit ad9bbe5

Please sign in to comment.