Skip to content

Commit 36b56a7

Browse files
remove non platfrom changes
1 parent c0116d0 commit 36b56a7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/app/clusters/closure-control-server/closure-control-cluster-matter-context.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818

1919
#pragma once
2020

21-
#include <app-common/zap-generated/callback.h>
2221
#include <app-common/zap-generated/ids/Clusters.h>
23-
#include <app/ConcreteAttributePath.h>
2422
#include <app/EventLogging.h>
2523
#include <app/reporting/reporting.h>
2624
#include <lib/core/CHIPError.h>
@@ -40,15 +38,7 @@ class MatterContext
4038
MatterContext(EndpointId endpointId) : mEndpointId(endpointId) {}
4139
virtual ~MatterContext() = default;
4240

43-
virtual void MarkDirty(AttributeId attributeId)
44-
{
45-
// Trigger reporting for subscriptions
46-
MatterReportingAttributeChangeCallback(mEndpointId, Id, attributeId);
47-
48-
// Trigger UI updates directly
49-
ConcreteAttributePath attributePath(mEndpointId, Id, attributeId);
50-
::MatterClosureControlClusterServerAttributeChangedCallback(attributePath);
51-
}
41+
virtual void MarkDirty(AttributeId attributeId) { MatterReportingAttributeChangeCallback(mEndpointId, Id, attributeId); }
5242

5343
template <typename EventType>
5444
CHIP_ERROR GenerateEvent(EventType event)

0 commit comments

Comments
 (0)