Skip to content

Commit

Permalink
qt: Remove some dead code (leftovers from the old version)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed Jul 8, 2024
1 parent 2188dea commit ab7ab9f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 56 deletions.
33 changes: 0 additions & 33 deletions qt/emilpro/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ MainWindow::MainWindow(QWidget* parent)
SetupInstructionView();
SetupReferencesView();
SetupAddressHistoryView();
SetupInstructionEncoding();
SetupDataView();

// Set focus on the location line edit by default
m_ui->locationLineEdit->setFocus();
Expand Down Expand Up @@ -310,11 +308,6 @@ MainWindow::on_action_ToggleSymbolsSections_triggered(bool activated)
m_ui->sectionSymbolTabWidget->setCurrentIndex(!m_ui->sectionSymbolTabWidget->currentIndex());
}

void
MainWindow::on_action_Mangle_names_triggered(bool activated)
{
}

void
MainWindow::on_action_Open_triggered(bool activated)
{
Expand Down Expand Up @@ -373,17 +366,6 @@ MainWindow::on_action_Refresh_triggered(bool activated)
on_action_Open_triggered(true);
}

void
MainWindow::on_action_Toggle_data_instructions_triggered(bool activated)
{
//m_ui->tabWidget->setCurrentIndex(!m_ui->tabWidget->currentIndex());
}

void
MainWindow::on_actionAT_T_syntax_x86_triggered(bool activated)
{
}

void
MainWindow::on_addressHistoryListView_activated(const QModelIndex& index)
{
Expand Down Expand Up @@ -830,21 +812,6 @@ MainWindow::SetupAddressHistoryView()
m_ui->addressHistoryListView->setModel(m_address_history_view_model);
}

void
MainWindow::SetupDataView()
{
}

void
MainWindow::SetupInfoBox()
{
}

void
MainWindow::SetupInstructionEncoding()
{
}

void
MainWindow::SetupInstructionLabels()
{
Expand Down
16 changes: 2 additions & 14 deletions qt/emilpro/mainwindow.hh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public:
explicit MainWindow(QWidget* parent = nullptr);
~MainWindow() final;

void TriggerOpenFile(const char *filename);
void TriggerOpenFile(const char* filename);

private slots:
void on_symbolTableView_activated(const QModelIndex& index);
Expand Down Expand Up @@ -66,20 +66,14 @@ private slots:
void on_action_ToggleReferenceTab_triggered(bool activated);
void on_action_ToggleSymbolsSections_triggered(bool activated);

void on_action_Mangle_names_triggered(bool activated);

void on_action_Toggle_data_instructions_triggered(bool activated);

void on_actionAT_T_syntax_x86_triggered(bool activated);

void on_action_About_triggered(bool activated);

void on_symbolTimerTriggered();

void on_locationLineEdit_textChanged(const QString& text);
void on_locationLineEdit_returnPressed();

void on_LoadFile(const QString &filename);
void on_LoadFile(const QString& filename);

private:
/// Parse a file, and return nullptr if successful, otherwise an error code
Expand All @@ -98,12 +92,6 @@ private:

void SetupInstructionLabels();

void SetupInstructionEncoding();

void SetupDataView();

void SetupInfoBox();

void SaveSettings();

void RestoreSettings();
Expand Down
9 changes: 0 additions & 9 deletions qt/emilpro/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -507,14 +507,6 @@
<addaction name="separator"/>
<addaction name="action_Quit"/>
</widget>
<widget class="QMenu" name="menu_View">
<property name="title">
<string>&amp;View</string>
</property>
<addaction name="action_Mangle_names"/>
<addaction name="action_Toggle_data_instructions"/>
<addaction name="actionAT_T_syntax_x86"/>
</widget>
<widget class="QMenu" name="menu_Help">
<property name="title">
<string>&amp;Help</string>
Expand All @@ -535,7 +527,6 @@
<addaction name="action_ToggleSymbolsSections"/>
</widget>
<addaction name="menu_File"/>
<addaction name="menu_View"/>
<addaction name="menuGo"/>
<addaction name="menu_Help"/>
</widget>
Expand Down

0 comments on commit ab7ab9f

Please sign in to comment.