Verified Commit 298a1b1a authored by Vladislav Glinsky's avatar Vladislav Glinsky
Browse files

Remove unused variables

parent b21e76af
......@@ -325,8 +325,6 @@ KGpgKeyNode::getUid(const unsigned int index) const
const QString idxstr = QString::number(index);
for (const KGpgNode *child : children) {
KGpgSignNode::List tmp;
switch (child->getType()) {
case KgpgCore::ITYPE_UID:
case KgpgCore::ITYPE_UAT:
......
......@@ -342,7 +342,6 @@ bool KgpgEditor::slotFileSaveAs()
if(!url.isEmpty()) {
const QString selectedEncoding = saveResult.encoding;
if (url.isLocalFile()) {
QString filn = url.path();
QFile f(url.path());
if (f.exists()) {
const QString message = i18n("Overwrite existing file %1?", url.fileName());
......
......@@ -124,8 +124,6 @@ void GnupgBinary::setBinary(const QString &executable)
m_useDebugLevel = (m_version > 0x20000);
const QString gpgConfigFile = KGpgSettings::gpgConfigPath();
m_standardArguments.clear();
m_standardArguments << QLatin1String( "--no-secmem-warning" )
<< QLatin1String( "--no-tty" )
......
......@@ -1961,8 +1961,6 @@ void KeysManager::signLoop(const bool localsign, const int checklevel)
Q_ASSERT(keyCount < signList.count());
KGpgSignableNode *nd = signList.at(keyCount);
QString uid;
QString keyid;
const KGpgSignTransactionHelper::carefulCheck cc = static_cast<KGpgSignTransactionHelper::carefulCheck>(checklevel);
KGpgTransaction *sta;
......
......@@ -266,9 +266,6 @@ readPublicKeysProcess(GPGProc &p, KGpgKeyNode *readNode)
}
}
} else if (publickey && ((lsp.at(0) == QLatin1String( "sig" )) || (lsp.at(0) == QLatin1String( "rev" ))) && (items >= 11)) {
// there are no strings here that could have a recoded QLatin1Char( ':' ) in them
const QString signature = lsp.join(QLatin1Char(':'));
if (currentSNode != nullptr)
(void) new KGpgSignNode(currentSNode, lsp);
} else {
......
......@@ -59,8 +59,6 @@ void KGpgAddUidTest::testAddUid_data()
void KGpgAddUidTest::testAddUidInvalid()
{
QString passphrase = readFile(QLatin1String("keys/kgpgtest_BA7695F3C550DF14.pass"));
QString keyId = QLatin1String("BA7695F3C550DF14");
QString name = QLatin1String("Test name");
QString email = QLatin1String("a b"); // intentionally invalid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment