Skip to content

Commit

Permalink
Remove unused variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Melvin Li <[email protected]>
  • Loading branch information
Zalafina committed Apr 21, 2023
1 parent c995abe commit 30b0d29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions QKeyMapper/qkeymapper_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1311,8 +1311,6 @@ void QKeyMapper_Worker::collectExchangeKeysList()
{
exchangeKeysList.clear();

QStringList singlemapping_original_keys;
QStringList singlemapping_keys;
QHash<QString, QString> singlemapping_keymap;
for (const MAP_KEYDATA &keymapdata : qAsConst(QKeyMapper::KeyMappingDataList))
{
Expand All @@ -1326,7 +1324,8 @@ void QKeyMapper_Worker::collectExchangeKeysList()
{
for (const QString &key : singlemapping_keymap.keys())
{
if (singlemapping_keymap.values().contains(key)) {
if (singlemapping_keymap.value(singlemapping_keymap.value(key)) == key)
{
exchangeKeysList.append(key);
}
}
Expand Down

0 comments on commit 30b0d29

Please sign in to comment.