diff --git a/src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp b/src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp index bc089c8a798a6a..7d46360029c529 100644 --- a/src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp +++ b/src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp @@ -164,24 +164,6 @@ const EmberAfAttributeMetadata * CreateFakeMeta(EmberAfAttributeType type, bool } } // namespace -// -namespace pw { - -// Pretty format in case of errors -template <> -StatusWithSize ToString(const EncodeResult & result, pw::span buffer) -{ - const std::optional & value = result.Value(); - - if (!value.has_value()) - { - return pw::string::Format(buffer, "SuccessResult"); - } - - return pw::string::Format(buffer, "FailureResult:CHIP_ERROR:<%" CHIP_ERROR_FORMAT ">", value->Format()); -} - -} // namespace pw // All the tests below assume buffer ordering in little endian format // Since currently all chip platforms in CI are little endian, we just kept tests