Skip to content

Commit d320fc9

Browse files
committed
BLE Gap: remove version one scan API
1 parent 95facb3 commit d320fc9

File tree

4 files changed

+20
-531
lines changed

4 files changed

+20
-531
lines changed

features/FEATURE_BLE/ble/gap/Gap.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,15 +1265,6 @@ class Gap : public StaticInterface<Impl, Gap> {
12651265
ble_error_t setRandomStaticAddress(const ble::address_t& address);
12661266

12671267
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;
12771268

12781269
/**
12791270
* Construct a Gap instance.
@@ -1415,8 +1406,6 @@ class Gap : public StaticInterface<Impl, Gap> {
14151406
central_privay_configuration_t *configuration
14161407
);
14171408
ble_error_t setRandomStaticAddress_(const ble::address_t& address);
1418-
void useVersionOneAPI_() const;
1419-
void useVersionTwoAPI_() const;
14201409

14211410
protected:
14221411
/**

features/FEATURE_BLE/ble/generic/GenericGap.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ class GenericGap :
9999
using ble::interface::Gap<GenericGap>::getMaxAdvertisingDataLength;
100100
#endif // BLE_ROLE_BROADCASTER
101101
using ble::interface::Gap<GenericGap>::isFeatureSupported;
102-
using ble::interface::Gap<GenericGap>::useVersionOneAPI;
103-
using ble::interface::Gap<GenericGap>::useVersionTwoAPI;
104102

105103
// Imports from PalGap EventHandler
106104
using PalGapEventHandler::on_scan_timeout;
@@ -642,10 +640,6 @@ class GenericGap :
642640

643641
void on_address_rotation_timeout();
644642

645-
void useVersionOneAPI_() const;
646-
647-
void useVersionTwoAPI_() const;
648-
649643
/* implements pal::Gap::EventHandler */
650644
private:
651645
void on_read_phy_(
@@ -828,8 +822,6 @@ class GenericGap :
828822
BitArray<MAX_ADVERTISING_SETS> _set_is_connectable;
829823

830824
// deprecation flags
831-
mutable bool _deprecated_scan_api_used : 1;
832-
mutable bool _non_deprecated_scan_api_used : 1;
833825
bool _user_manage_connection_parameter_requests : 1;
834826

835827
private:

features/FEATURE_BLE/source/gap/Gap.tpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -418,18 +418,6 @@ ble_error_t Gap<Impl>::setPhy(
418418
}
419419
#endif // BLE_FEATURE_PHY_MANAGEMENT
420420

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-
433421
template<class Impl>
434422
Gap<Impl>::Gap() : _eventHandler(NULL)
435423
{
@@ -819,16 +807,6 @@ ble_error_t Gap<Impl>::setPhy_(
819807
return BLE_ERROR_NOT_IMPLEMENTED;
820808
}
821809

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-
832810
template<class Impl>
833811
ble_error_t Gap<Impl>::enablePrivacy_(bool enable)
834812
{

0 commit comments

Comments
 (0)