* Remove the given key from the authorized keys, when it is exists. * @param key The key to remove. * @return \c true when the key was removed, \c false when the key did not exist. */
| 204 | * @return \c true when the key was removed, \c false when the key did not exist. |
| 205 | */ |
| 206 | bool NetworkAuthorizedKeys::Remove(std::string_view key) |
| 207 | { |
| 208 | auto iter = FindKey(this, key); |
| 209 | if (iter == this->end()) return false; |
| 210 | |
| 211 | this->erase(iter); |
| 212 | return true; |
| 213 | } |
| 214 | |
| 215 | |
| 216 | uint8_t NetworkSpectatorCount() |