@@ -97,7 +97,6 @@ bool NimBLEDevice::m_initialized{false};
9797uint32_t NimBLEDevice::m_passkey{123456 };
9898bool NimBLEDevice::m_synced{false };
9999ble_gap_event_listener NimBLEDevice::m_listener{};
100- std::vector<NimBLEAddress> NimBLEDevice::m_ignoreList{};
101100std::vector<NimBLEAddress> NimBLEDevice::m_whiteList{};
102101uint8_t NimBLEDevice::m_ownAddrType{BLE_OWN_ADDR_PUBLIC};
103102
@@ -928,7 +927,6 @@ bool NimBLEDevice::deinit(bool clearAll) {
928927 deleteClient (clt);
929928 }
930929# endif
931- m_ignoreList.clear ();
932930 }
933931
934932 return rc == 0 ;
@@ -1149,48 +1147,6 @@ bool NimBLEDevice::injectConfirmPasskey(const NimBLEConnInfo& peerInfo, bool acc
11491147 return rc == 0 ;
11501148}
11511149
1152- /* -------------------------------------------------------------------------- */
1153- /* IGNORE LIST */
1154- /* -------------------------------------------------------------------------- */
1155-
1156- /* *
1157- * @brief Check if the device address is on our ignore list.
1158- * @param [in] address The address to look for.
1159- * @return True if ignoring.
1160- */
1161- bool NimBLEDevice::isIgnored (const NimBLEAddress& address) {
1162- for (const auto & addr : m_ignoreList) {
1163- if (addr == address) {
1164- return true ;
1165- }
1166- }
1167-
1168- return false ;
1169- }
1170-
1171- /* *
1172- * @brief Add a device to the ignore list.
1173- * @param [in] address The address of the device we want to ignore.
1174- */
1175- void NimBLEDevice::addIgnored (const NimBLEAddress& address) {
1176- if (!isIgnored (address)) {
1177- m_ignoreList.push_back (address);
1178- }
1179- }
1180-
1181- /* *
1182- * @brief Remove a device from the ignore list.
1183- * @param [in] address The address of the device we want to remove from the list.
1184- */
1185- void NimBLEDevice::removeIgnored (const NimBLEAddress& address) {
1186- for (auto it = m_ignoreList.begin (); it < m_ignoreList.end (); ++it) {
1187- if (*it == address) {
1188- m_ignoreList.erase (it);
1189- std::vector<NimBLEAddress>(m_ignoreList).swap (m_ignoreList);
1190- }
1191- }
1192- }
1193-
11941150/* -------------------------------------------------------------------------- */
11951151/* UTILITIES */
11961152/* -------------------------------------------------------------------------- */
0 commit comments