MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / clear

Method clear

app/src/MQTT/CredentialVault.cpp:126–134  ·  view source on GitHub ↗

* @brief Removes any stored credentials for host:port. */

Source from the content-addressed store, hash-verified

124 * @brief Removes any stored credentials for host:port.
125 */
126void 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

Callers 15

closeResourcesMethod · 0.45
closeFileMethod · 0.45
buildFrameIndexMethod · 0.45
buildReplayLayoutMethod · 0.45
applyRecoveryMethod · 0.45
onSearchFinishedMethod · 0.45
setSelectedIndexMethod · 0.45
onContentsReplyMethod · 0.45
applyFilterMethod · 0.45
setCurrentIndexMethod · 0.45
onManifestReplyMethod · 0.45
applyFilterMethod · 0.45

Calls 2

isEmptyMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected