Skip to content

Commit

Permalink
Remove HAPIPSessionDescriptor.maxEventNotifications
Browse files Browse the repository at this point in the history
eventNotifications array is dynamic, there's no hard limit.
  • Loading branch information
rojer committed Aug 15, 2021
1 parent a53e925 commit 371f626
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion HomeKitADK/HAP/HAPIPAccessoryServer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3298,7 +3298,6 @@ static void write_event_notifications(HAPIPSessionDescriptor* session) {
HAPPrecondition(session->inboundBuffer.position == 0);
HAPPrecondition(session->numEventNotificationFlags > 0);
HAPPrecondition(session->numEventNotificationFlags <= session->numEventNotifications);
HAPPrecondition(session->numEventNotifications <= session->maxEventNotifications);

HAPError err;

Expand Down
5 changes: 0 additions & 5 deletions HomeKitADK/HAP/HAPIPAccessoryServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,6 @@ typedef struct {
*/
HAPIPEventNotificationRef* _Nullable eventNotifications;

/**
* The maximum number of events this session can handle.
*/
size_t maxEventNotifications;

/**
* The number of subscribed events on this session.
*/
Expand Down

0 comments on commit 371f626

Please sign in to comment.