Removed redundant programming mode events and updated TC documentation.

These events were made redundant by the introduction of the `TargetState`
struct, and the `TargetStateChanged` event.
This commit is contained in:
Nav
2025-03-29 02:03:26 +00:00
parent f33382efb3
commit 11e9b0c731
6 changed files with 5 additions and 111 deletions

View File

@@ -49,14 +49,6 @@ Insight::Insight(
std::bind(&Insight::onTargetMemoryWrittenEvent, this, std::placeholders::_1)
);
this->eventListener.registerCallbackForEventType<Events::ProgrammingModeEnabled>(
std::bind(&Insight::onProgrammingModeEnabledEvent, this, std::placeholders::_1)
);
this->eventListener.registerCallbackForEventType<Events::ProgrammingModeDisabled>(
std::bind(&Insight::onProgrammingModeDisabledEvent, this, std::placeholders::_1)
);
QApplication::setQuitOnLastWindowClosed(false);
QApplication::setStyle(new BloomProxyStyle{});
@@ -226,11 +218,3 @@ void Insight::onTargetMemoryWrittenEvent(const Events::MemoryWrittenToTarget& ev
Targets::TargetMemoryAddressRange{event.startAddress, event.startAddress + (event.size - 1)}
);
}
void Insight::onProgrammingModeEnabledEvent(const Events::ProgrammingModeEnabled& event) {
emit this->insightSignals->programmingModeEnabled();
}
void Insight::onProgrammingModeDisabledEvent(const Events::ProgrammingModeDisabled& event) {
emit this->insightSignals->programmingModeDisabled();
}