@@ -471,22 +471,6 @@ PyChipError pychip_ReadClient_GetReportingIntervals(ReadClient * pReadClient, ui
471
471
return ToPyChipError (err);
472
472
}
473
473
474
- void pychip_ReadClient_GetSubscriptionTimeout (ReadClient * pReadClient, uint32_t * milliSec)
475
- {
476
- VerifyOrDie (pReadClient != nullptr );
477
-
478
- Optional<System::Clock::Timeout> duration = pReadClient->GetSubscriptionTimeout ();
479
-
480
- // The return value of GetSubscriptionTimeout cannot be 0
481
- // so milliSec=0 can be considered as the subscription has been abnormal.
482
- *milliSec = 0 ;
483
- if (duration.HasValue ())
484
- {
485
- System::Clock::Milliseconds32 msec = std::chrono::duration_cast<System::Clock::Milliseconds32>(duration.Value ());
486
- *milliSec = msec.count ();
487
- }
488
- }
489
-
490
474
PyChipError pychip_ReadClient_Read (void * appContext, ReadClient ** pReadClient, ReadClientCallback ** pCallback,
491
475
DeviceProxy * device, uint8_t * readParamsBuf, void ** attributePathsFromPython,
492
476
size_t numAttributePaths, void ** dataversionFiltersFromPython, size_t numDataversionFilters,
@@ -576,22 +560,11 @@ PyChipError pychip_ReadClient_Read(void * appContext, ReadClient ** pReadClient,
576
560
params.mKeepSubscriptions = pyParams.keepSubscriptions ;
577
561
callback->SetAutoResubscribe (pyParams.autoResubscribe );
578
562
579
- #if CONFIG_BUILD_FOR_HOST_UNIT_TEST
580
- if (!pyParams.autoResubscribe )
581
- {
582
- // We want to allow certain kinds of spec-invalid subscriptions so we
583
- // can test how the server reacts to them.
584
- err = readClient->SendSubscribeRequestWithoutValidation (params);
585
- }
586
- else
587
- #endif // CONFIG_BUILD_FOR_HOST_UNIT_TEST
588
- {
589
- dataVersionFilters.release ();
590
- attributePaths.release ();
591
- eventPaths.release ();
563
+ dataVersionFilters.release ();
564
+ attributePaths.release ();
565
+ eventPaths.release ();
592
566
593
- err = readClient->SendAutoResubscribeRequest (std::move (params));
594
- }
567
+ err = readClient->SendAutoResubscribeRequest (std::move (params));
595
568
SuccessOrExit (err);
596
569
}
597
570
else
0 commit comments