Skip to content

Commit 2003184

Browse files
yunhanw-googlepull[bot]
authored andcommitted
remove dead code for im event callback in android (#29381)
1 parent 89bb172 commit 2003184

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

src/controller/java/AndroidCallbacks.h

-40
Original file line numberDiff line numberDiff line change
@@ -92,46 +92,6 @@ struct ReportCallback : public app::ClusterStateCache::Callback
9292
jclass mNodeStateCls = nullptr;
9393
};
9494

95-
struct ReportEventCallback : public app::ReadClient::Callback
96-
{
97-
/** Subscription established callback can be nullptr. */
98-
ReportEventCallback(jobject wrapperCallback, jobject subscriptionEstablishedCallback, jobject reportCallback,
99-
jobject resubscriptionAttemptCallback);
100-
~ReportEventCallback();
101-
102-
void OnReportBegin() override;
103-
104-
void OnReportEnd() override;
105-
106-
void OnEventData(const app::EventHeader & aEventHeader, TLV::TLVReader * apData, const app::StatusIB * apStatus) override;
107-
108-
void OnError(CHIP_ERROR aError) override;
109-
110-
void OnDone(app::ReadClient *) override;
111-
112-
void OnSubscriptionEstablished(SubscriptionId aSubscriptionId) override;
113-
114-
CHIP_ERROR OnResubscriptionNeeded(app::ReadClient * apReadClient, CHIP_ERROR aTerminationCause) override;
115-
116-
/** Report errors back to Java layer. attributePath may be nullptr for general errors. */
117-
void ReportError(jobject eventPath, CHIP_ERROR err);
118-
void ReportError(jobject eventPath, Protocols::InteractionModel::Status status);
119-
void ReportError(jobject eventPath, const char * message, ChipError::StorageType errorCode);
120-
121-
CHIP_ERROR CreateChipEventPath(const app::ConcreteEventPath & aPath, jobject & outObj);
122-
123-
app::ReadClient * mReadClient = nullptr;
124-
125-
app::BufferedReadCallback mBufferedReadAdapter;
126-
jobject mWrapperCallbackRef = nullptr;
127-
jobject mSubscriptionEstablishedCallbackRef = nullptr;
128-
jobject mResubscriptionAttemptCallbackRef = nullptr;
129-
jobject mReportCallbackRef = nullptr;
130-
// NodeState Java object that will be returned to the application.
131-
jobject mNodeStateObj = nullptr;
132-
jclass mNodeStateCls = nullptr;
133-
};
134-
13595
struct WriteAttributesCallback : public app::WriteClient::Callback
13696
{
13797
WriteAttributesCallback(jobject wrapperCallback, jobject javaCallback);

0 commit comments

Comments
 (0)