This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit ba05f640674cd5c375520d03a3a1f103c05316dd
Author: Szymon Janc <[email protected]>
AuthorDate: Fri Feb 20 10:13:31 2026 +0100

    nimble/host: Remove deprecated API
    
    Those were derpecated for quite a long and should be safe to cleanup.
---
 nimble/host/include/host/ble_gap.h  |  4 ----
 nimble/host/include/host/ble_gatt.h | 48 -------------------------------------
 nimble/host/src/ble_gattc.c         | 38 -----------------------------
 3 files changed, 90 deletions(-)

diff --git a/nimble/host/include/host/ble_gap.h 
b/nimble/host/include/host/ble_gap.h
index 9a1ead004..d9da3c6ca 100644
--- a/nimble/host/include/host/ble_gap.h
+++ b/nimble/host/include/host/ble_gap.h
@@ -249,9 +249,6 @@ struct hci_conn_update;
 /** GAP event: Pairing complete */
 #define BLE_GAP_EVENT_PAIRING_COMPLETE      27
 
-/** GAP event: Pairing complete (deprecated) */
-#define BLE_GAP_EVENT_PARING_COMPLETE BLE_GAP_EVENT_PAIRING_COMPLETE
-
 /** GAP event: Subrate change */
 #define BLE_GAP_EVENT_SUBRATE_CHANGE        28
 
@@ -1249,7 +1246,6 @@ struct ble_gap_event {
          *
          * Valid for the following event types:
          *     o BLE_GAP_EVENT_PAIRING_COMPLETE
-         *     o BLE_GAP_EVENT_PARING_COMPLETE (deprecated)
          */
         struct {
             /**
diff --git a/nimble/host/include/host/ble_gatt.h 
b/nimble/host/include/host/ble_gatt.h
index a8dafeba6..e74ba9e1a 100644
--- a/nimble/host/include/host/ble_gatt.h
+++ b/nimble/host/include/host/ble_gatt.h
@@ -710,20 +710,6 @@ int ble_gatts_notify_multiple_custom(uint16_t conn_handle,
                                      size_t chr_count,
                                      struct ble_gatt_notif *tuples);
 
-/**
- * @deprecated Should not be used. Use ble_gatts_notify_custom instead.
- *
- * @param conn_handle           The connection over which to execute the
- *                                  procedure.
- * @param att_handle            The attribute handle to indicate in the
- *                                  outgoing notification.
- * @param om                    The value to write to the characteristic.
- *
- * @return                      0 on success; nonzero on failure.
- */
-int ble_gattc_notify_custom(uint16_t conn_handle, uint16_t att_handle,
-                            struct os_mbuf *om);
-
 /**
  * Sends a characteristic notification.  The content of the message is read
  * from the specified characteristic.
@@ -738,19 +724,6 @@ int ble_gattc_notify_custom(uint16_t conn_handle, uint16_t 
att_handle,
  */
 int ble_gatts_notify(uint16_t conn_handle, uint16_t chr_val_handle);
 
-/**
- * @deprecated Should not be used. Use ble_gatts_notify instead.
- *
- * @param conn_handle           The connection over which to execute the
- *                                  procedure.
- * @param chr_val_handle        The value attribute handle of the
- *                                  characteristic to include in the outgoing
- *                                  notification.
- *
- * @return                      0 on success; nonzero on failure.
- */
-int ble_gattc_notify(uint16_t conn_handle, uint16_t chr_val_handle);
-
 /**
  * Sends a multiple handle variable length characteristic notification.  The
  * content of the message is read from the specified characteristics.
@@ -794,21 +767,6 @@ int ble_gatts_notify_multiple(uint16_t conn_handle,
 int ble_gatts_indicate_custom(uint16_t conn_handle, uint16_t chr_val_handle,
                               struct os_mbuf *txom);
 
-/**
- * @deprecated Should not be used. Use ble_gatts_indicate_custom instead.
- *
- * @param conn_handle           The connection over which to execute the
- *                                  procedure.
- * @param chr_val_handle        The value attribute handle of the
- *                                  characteristic to include in the outgoing
- *                                  indication.
- * @param txom                  The data to include in the indication.
- *
- * @return                      0 on success; nonzero on failure.
- */
-int ble_gattc_indicate_custom(uint16_t conn_handle, uint16_t chr_val_handle,
-                              struct os_mbuf *txom);
-
 /**
  * Sends a characteristic indication.  The content of the message is read from
  * the specified characteristic.
@@ -823,12 +781,6 @@ int ble_gattc_indicate_custom(uint16_t conn_handle, 
uint16_t chr_val_handle,
  */
 int ble_gatts_indicate(uint16_t conn_handle, uint16_t chr_val_handle);
 
-/**
- * @deprecated Should not be used. Use ble_gatts_indicate instead.
- * @copydoc ble_gatts_indicate
- */
-int ble_gattc_indicate(uint16_t conn_handle, uint16_t chr_val_handle);
-
 /**
  * Initialize the BLE GATT client
  *
diff --git a/nimble/host/src/ble_gattc.c b/nimble/host/src/ble_gattc.c
index a19ed8325..87df86f8d 100644
--- a/nimble/host/src/ble_gattc.c
+++ b/nimble/host/src/ble_gattc.c
@@ -4400,16 +4400,6 @@ done:
     return rc;
 }
 
-/**
- * Deprecated. Should not be used. Use ble_gatts_notify_custom instead.
- */
-int
-ble_gattc_notify_custom(uint16_t conn_handle, uint16_t chr_val_handle,
-                        struct os_mbuf *txom)
-{
-    return ble_gatts_notify_custom(conn_handle, chr_val_handle, txom);
-}
-
 int
 ble_gatts_notify(uint16_t conn_handle, uint16_t chr_val_handle)
 {
@@ -4557,15 +4547,6 @@ ble_gatts_notify_multiple(uint16_t conn_handle,
     return rc;
 }
 
-/**
- * Deprecated. Should not be used. Use ble_gatts_notify instead.
- */
-int
-ble_gattc_notify(uint16_t conn_handle, uint16_t chr_val_handle)
-{
-    return ble_gatts_notify(conn_handle, chr_val_handle);
-}
-
 /*****************************************************************************
  * $indicate                                                                 *
  *****************************************************************************/
@@ -4718,31 +4699,12 @@ done:
     return rc;
 }
 
-/**
- * Deprecated. Should not be used. Use ble_gatts_indicate_custom instead.
- */
-int
-ble_gattc_indicate_custom(uint16_t conn_handle, uint16_t chr_val_handle,
-                          struct os_mbuf *txom)
-{
-    return ble_gatts_indicate_custom(conn_handle, chr_val_handle, txom);
-}
-
 int
 ble_gatts_indicate(uint16_t conn_handle, uint16_t chr_val_handle)
 {
     return ble_gatts_indicate_custom(conn_handle, chr_val_handle, NULL);
 }
 
-/**
- * Deprecated. Should not be used. Use ble_gatts_indicate instead.
- */
-int
-ble_gattc_indicate(uint16_t conn_handle, uint16_t chr_val_handle)
-{
-    return ble_gatts_indicate(conn_handle, chr_val_handle);
-}
-
 /*****************************************************************************
  * $rx                                                                       *
  *****************************************************************************/

Reply via email to