drop GattServer::initializeGattDatabase()

This commit is contained in:
Rohit Grover 2015-06-19 09:10:16 +01:00
parent 345e8010a2
commit b70e8f6174
2 changed files with 0 additions and 11 deletions

View file

@ -444,15 +444,6 @@ public:
* ble.gap().startAdvertising(...).
*/
ble_error_t startAdvertising(void) {
/* HACK ALERT! the following bit with initializeGATTDatabase() is additional to
* gap().startAdvertising(). This was put in place to get some stacks to
* work--like CSR. We need to reach a point where this shouldn't be
* necessary. */
ble_error_t rc;
if ((rc = transport->getGattServer().initializeGATTDatabase()) != BLE_ERROR_NONE) {
return rc;
}
return gap().startAdvertising();
}

View file

@ -136,8 +136,6 @@ public:
*/
virtual ble_error_t write(Gap::Handle_t connectionHandle, GattAttribute::Handle_t, const uint8_t *, uint16_t, bool localOnly = false) = 0;
virtual ble_error_t initializeGATTDatabase(void) = 0;
/**
* Add a callback for the GATT event DATA_SENT (which is triggered when
* updates are sent out by GATT in the form of notifications).