Skip to content

Commit

Permalink
remove the deprecated mark to fix CI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 committed Nov 11, 2024
1 parent 9efb23c commit a402601
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
3 changes: 1 addition & 2 deletions src/app/data-model-provider/Provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ class Provider : public ProviderMetadataTree
///
/// TODO: We should remove this function when the AttributeAccessInterface/CommandHandlerInterface is able to report
/// the attribute changes.
[[deprecated("Workaround until all code can use a context object instead")]] virtual void
Temporary_ReportAttributeChanged(const AttributePathParams & path) = 0;
virtual void Temporary_ReportAttributeChanged(const AttributePathParams & path) = 0;

private:
InteractionModelContext mContext = { nullptr };
Expand Down
9 changes: 0 additions & 9 deletions src/app/reporting/reporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
using namespace chip;
using namespace chip::app;

#if defined(__GNUC__) || defined(__clang__)
// Disable the deprecated warning only for this file
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

void MatterReportingAttributeChangeCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId)
{
// Attribute writes have asserted this already, but this assert should catch
Expand Down Expand Up @@ -58,6 +52,3 @@ void MatterReportingAttributeChangeCallback(EndpointId endpoint)

InteractionModelEngine::GetInstance()->GetDataModelProvider()->Temporary_ReportAttributeChanged(AttributePathParams(endpoint));
}
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic pop
#endif

0 comments on commit a402601

Please sign in to comment.