From 9e34ea2a489b4d0053e14b0ac6bd9cc77d4fdc89 Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Sun, 4 Oct 2020 17:58:14 +0200 Subject: [PATCH] chore(bondings): Remove unused device name fields --- epicardium/ble/bondings.c | 44 --------------------------------------- 1 file changed, 44 deletions(-) diff --git a/epicardium/ble/bondings.c b/epicardium/ble/bondings.c index 550077784..54274859e 100644 --- a/epicardium/ble/bondings.c +++ b/epicardium/ble/bondings.c @@ -81,8 +81,6 @@ typedef struct typedef struct { appDbRec_t rec[APP_DB_NUM_RECS]; /*! Device database records */ - char devName[ATT_DEFAULT_PAYLOAD_LEN]; /*! Device name */ - uint8_t devNameLen; /*! Device name length */ } appDb_t; /************************************************************************************************** @@ -581,48 +579,6 @@ void AppDbSetHdlList(appDbHdl_t hdl, uint16_t *pHdlList) memcpy(((appDbRec_t *) hdl)->hdlList, pHdlList, sizeof(((appDbRec_t *) hdl)->hdlList)); } -/*************************************************************************************************/ -/*! - * \brief Get the device name. - * - * \param pLen Returned device name length. - * - * \return Pointer to UTF-8 string containing device name or NULL if not set. - */ -/*************************************************************************************************/ -char *AppDbGetDevName(uint8_t *pLen) -{ - /* if first character of name is NULL assume it is uninitialized */ - if (appDb.devName[0] == 0) - { - *pLen = 0; - return NULL; - } - else - { - *pLen = appDb.devNameLen; - return appDb.devName; - } -} - -/*************************************************************************************************/ -/*! - * \brief Set the device name. - * - * \param len Device name length. - * \param pStr UTF-8 string containing device name. - * - * \return None. - */ -/*************************************************************************************************/ -void AppDbSetDevName(uint8_t len, char *pStr) -{ - /* check for maximum device length */ - len = (len <= sizeof(appDb.devName)) ? len : sizeof(appDb.devName); - - memcpy(appDb.devName, pStr, len); -} - /*************************************************************************************************/ /*! * \brief Get address resolution attribute value read from a peer device. -- GitLab