From 98559291f17e07d7bc44c43c76178a081642058a Mon Sep 17 00:00:00 2001 From: yunhanw-google Date: Thu, 21 Sep 2023 13:14:09 -0700 Subject: [PATCH] remove dead code for im event callback in android (#29381) --- src/controller/java/AndroidCallbacks.h | 40 -------------------------- 1 file changed, 40 deletions(-) diff --git a/src/controller/java/AndroidCallbacks.h b/src/controller/java/AndroidCallbacks.h index 9fc2e758f101f6..f5170f88581d4f 100644 --- a/src/controller/java/AndroidCallbacks.h +++ b/src/controller/java/AndroidCallbacks.h @@ -92,46 +92,6 @@ struct ReportCallback : public app::ClusterStateCache::Callback jclass mNodeStateCls = nullptr; }; -struct ReportEventCallback : public app::ReadClient::Callback -{ - /** Subscription established callback can be nullptr. */ - ReportEventCallback(jobject wrapperCallback, jobject subscriptionEstablishedCallback, jobject reportCallback, - jobject resubscriptionAttemptCallback); - ~ReportEventCallback(); - - void OnReportBegin() override; - - void OnReportEnd() override; - - void OnEventData(const app::EventHeader & aEventHeader, TLV::TLVReader * apData, const app::StatusIB * apStatus) override; - - void OnError(CHIP_ERROR aError) override; - - void OnDone(app::ReadClient *) override; - - void OnSubscriptionEstablished(SubscriptionId aSubscriptionId) override; - - CHIP_ERROR OnResubscriptionNeeded(app::ReadClient * apReadClient, CHIP_ERROR aTerminationCause) override; - - /** Report errors back to Java layer. attributePath may be nullptr for general errors. */ - void ReportError(jobject eventPath, CHIP_ERROR err); - void ReportError(jobject eventPath, Protocols::InteractionModel::Status status); - void ReportError(jobject eventPath, const char * message, ChipError::StorageType errorCode); - - CHIP_ERROR CreateChipEventPath(const app::ConcreteEventPath & aPath, jobject & outObj); - - app::ReadClient * mReadClient = nullptr; - - app::BufferedReadCallback mBufferedReadAdapter; - jobject mWrapperCallbackRef = nullptr; - jobject mSubscriptionEstablishedCallbackRef = nullptr; - jobject mResubscriptionAttemptCallbackRef = nullptr; - jobject mReportCallbackRef = nullptr; - // NodeState Java object that will be returned to the application. - jobject mNodeStateObj = nullptr; - jclass mNodeStateCls = nullptr; -}; - struct WriteAttributesCallback : public app::WriteClient::Callback { WriteAttributesCallback(jobject wrapperCallback, jobject javaCallback);