forked from qt-creator/qt-creator
PeripheralRegisterHandler: Drop unneeded if condition
Amends 53e8f8c761
Change-Id: Ic27941cd2cb6725a7cd97f1ea5ea73bd4bc44ad0
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -936,7 +936,6 @@ QMenu *PeripheralRegisterHandler::createRegisterFieldFormatMenu(
|
||||
void PeripheralRegisterHandler::setActiveGroup(const QString &groupName)
|
||||
{
|
||||
deactivateGroups();
|
||||
if (const auto act = qobject_cast<QAction *>(sender())) {
|
||||
const auto groupEnd = m_peripheralRegisterGroups.end();
|
||||
const auto groupIt = std::find_if(
|
||||
m_peripheralRegisterGroups.begin(), groupEnd,
|
||||
@@ -960,7 +959,6 @@ void PeripheralRegisterHandler::setActiveGroup(const QString &groupName)
|
||||
|
||||
m_engine->reloadPeripheralRegisters();
|
||||
}
|
||||
}
|
||||
|
||||
void PeripheralRegisterHandler::deactivateGroups()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user