File tree Expand file tree Collapse file tree 4 files changed +20
-531
lines changed Expand file tree Collapse file tree 4 files changed +20
-531
lines changed Original file line number Diff line number Diff line change @@ -1265,15 +1265,6 @@ class Gap : public StaticInterface<Impl, Gap> {
1265
1265
ble_error_t setRandomStaticAddress (const ble::address_t & address);
1266
1266
1267
1267
protected:
1268
- /* * Can only be called if use_non_deprecated_scan_api() hasn't been called.
1269
- * This guards against mixed use of deprecated and nondeprecated API.
1270
- */
1271
- void useVersionOneAPI () const ;
1272
-
1273
- /* * Can only be called if use_deprecated_scan_api() hasn't been called.
1274
- * This guards against mixed use of deprecated and nondeprecated API.
1275
- */
1276
- void useVersionTwoAPI () const ;
1277
1268
1278
1269
/* *
1279
1270
* Construct a Gap instance.
@@ -1415,8 +1406,6 @@ class Gap : public StaticInterface<Impl, Gap> {
1415
1406
central_privay_configuration_t *configuration
1416
1407
);
1417
1408
ble_error_t setRandomStaticAddress_ (const ble::address_t & address);
1418
- void useVersionOneAPI_ () const ;
1419
- void useVersionTwoAPI_ () const ;
1420
1409
1421
1410
protected:
1422
1411
/* *
Original file line number Diff line number Diff line change @@ -99,8 +99,6 @@ class GenericGap :
99
99
using ble::interface::Gap<GenericGap>::getMaxAdvertisingDataLength;
100
100
#endif // BLE_ROLE_BROADCASTER
101
101
using ble::interface::Gap<GenericGap>::isFeatureSupported;
102
- using ble::interface::Gap<GenericGap>::useVersionOneAPI;
103
- using ble::interface::Gap<GenericGap>::useVersionTwoAPI;
104
102
105
103
// Imports from PalGap EventHandler
106
104
using PalGapEventHandler::on_scan_timeout;
@@ -642,10 +640,6 @@ class GenericGap :
642
640
643
641
void on_address_rotation_timeout ();
644
642
645
- void useVersionOneAPI_ () const ;
646
-
647
- void useVersionTwoAPI_ () const ;
648
-
649
643
/* implements pal::Gap::EventHandler */
650
644
private:
651
645
void on_read_phy_ (
@@ -828,8 +822,6 @@ class GenericGap :
828
822
BitArray<MAX_ADVERTISING_SETS> _set_is_connectable;
829
823
830
824
// deprecation flags
831
- mutable bool _deprecated_scan_api_used : 1 ;
832
- mutable bool _non_deprecated_scan_api_used : 1 ;
833
825
bool _user_manage_connection_parameter_requests : 1 ;
834
826
835
827
private:
Original file line number Diff line number Diff line change @@ -418,18 +418,6 @@ ble_error_t Gap<Impl>::setPhy(
418
418
}
419
419
#endif // BLE_FEATURE_PHY_MANAGEMENT
420
420
421
- template <class Impl >
422
- void Gap<Impl>::useVersionOneAPI() const
423
- {
424
- return impl ()->useVersionOneAPI_ ();
425
- }
426
-
427
- template <class Impl >
428
- void Gap<Impl>::useVersionTwoAPI() const
429
- {
430
- return impl ()->useVersionTwoAPI_ ();
431
- }
432
-
433
421
template <class Impl >
434
422
Gap<Impl>::Gap() : _eventHandler(NULL )
435
423
{
@@ -819,16 +807,6 @@ ble_error_t Gap<Impl>::setPhy_(
819
807
return BLE_ERROR_NOT_IMPLEMENTED;
820
808
}
821
809
822
- template <class Impl >
823
- void Gap<Impl>::useVersionOneAPI_() const
824
- {
825
- }
826
-
827
- template <class Impl >
828
- void Gap<Impl>::useVersionTwoAPI_() const
829
- {
830
- }
831
-
832
810
template <class Impl >
833
811
ble_error_t Gap<Impl>::enablePrivacy_(bool enable)
834
812
{
You can’t perform that action at this time.
0 commit comments