* @brief Removes any stored credentials for host:port. */
| 124 | * @brief Removes any stored credentials for host:port. |
| 125 | */ |
| 126 | void MQTT::CredentialVault::clear(const QString& host, quint16 port) |
| 127 | { |
| 128 | if (host.isEmpty()) |
| 129 | return; |
| 130 | |
| 131 | m_settings.beginGroup(QStringLiteral("mqtt/credentials")); |
| 132 | m_settings.remove(settingsKey(host, port)); |
| 133 | m_settings.endGroup(); |
| 134 | } |
| 135 | |
| 136 | //-------------------------------------------------------------------------------------------------- |
| 137 | // Helpers |
no test coverage detected