Skip to content

Commit

Permalink
remove dead code for im event callback in android
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google committed Sep 21, 2023
1 parent 30f8eb5 commit b54b3cd
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions src/controller/java/AndroidCallbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b54b3cd

Please sign in to comment.