diff --git a/src/qrcore.cpp b/src/qrcore.cpp index e8bc92bf..a2c2cf1a 100644 --- a/src/qrcore.cpp +++ b/src/qrcore.cpp @@ -392,15 +392,7 @@ QMap>> QRCore::getNestedComments() tmp << fields[1].split("\"")[1].trimmed(); tmp << fields[0].trimmed(); QString fcn_name = this->cmdFunctionAt(fields[0].trimmed()); - // Why test if you do the same thing? - if (ret.contains(fcn_name)) - { - ret[fcn_name].append(tmp); - } - else - { - ret[fcn_name].append(tmp); - } + ret[fcn_name].append(tmp); } } return ret; diff --git a/src/widgets/memorywidget.cpp b/src/widgets/memorywidget.cpp index 887fe36c..cc688213 100644 --- a/src/widgets/memorywidget.cpp +++ b/src/widgets/memorywidget.cpp @@ -1052,13 +1052,6 @@ void MemoryWidget::cycleViews() ui->memTabWidget->setCurrentIndex(2); ui->memSideTabWidget_2->setCurrentIndex(0); } - else if (ui->memTabWidget->currentIndex() == 2) - { - // Show disasm - ui->disButton_2->setChecked(true); - ui->memTabWidget->setCurrentIndex(0); - ui->memSideTabWidget_2->setCurrentIndex(0); - } else { // Show disasm