From 2c98275b5196fcd1c0c479a3a357a44fce324e07 Mon Sep 17 00:00:00 2001
From: Yuri Kunde Schlesner <yuriks@yuriks.net>
Date: Tue, 25 Aug 2015 06:16:21 -0300
Subject: [PATCH] Shader Debugger: Remove useless signal

---
 src/citra_qt/debugger/graphics_vertex_shader.cpp | 7 ++-----
 src/citra_qt/debugger/graphics_vertex_shader.h   | 5 -----
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cpp
index 831ead51ab..64a3569d45 100644
--- a/src/citra_qt/debugger/graphics_vertex_shader.cpp
+++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp
@@ -361,9 +361,6 @@ GraphicsVertexShaderWidget::GraphicsVertexShaderWidget(std::shared_ptr< Pica::De
 
     cycle_index = new QSpinBox;
 
-    connect(this, SIGNAL(SelectCommand(const QModelIndex&, QItemSelectionModel::SelectionFlags)),
-            binary_list->selectionModel(), SLOT(select(const QModelIndex&, QItemSelectionModel::SelectionFlags)));
-
     connect(dump_shader, SIGNAL(clicked()), this, SLOT(DumpShader()));
 
     connect(cycle_index, SIGNAL(valueChanged(int)), this, SLOT(OnCycleIndexChanged(int)));
@@ -550,7 +547,7 @@ void GraphicsVertexShaderWidget::OnCycleIndexChanged(int index) {
     instruction_description->setText(text);
 
     // Scroll to current instruction
-    const QModelIndex& instr_index = model->index(record.instruction_offset, 0);
-    emit SelectCommand(instr_index, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
+    QModelIndex instr_index = model->index(record.instruction_offset, 0);
+    binary_list->selectionModel()->select(instr_index, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
     binary_list->scrollTo(instr_index, QAbstractItemView::EnsureVisible);
 }
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.h b/src/citra_qt/debugger/graphics_vertex_shader.h
index d4e93103fa..0bf1652fc2 100644
--- a/src/citra_qt/debugger/graphics_vertex_shader.h
+++ b/src/citra_qt/debugger/graphics_vertex_shader.h
@@ -60,11 +60,6 @@ private slots:
      */
     void Reload(bool replace_vertex_data = false, void* vertex_data = nullptr);
 
-
-signals:
-    // Call this to change the current command selection in the disassembly view
-    void SelectCommand(const QModelIndex&, QItemSelectionModel::SelectionFlags);
-
 private:
     QLabel* instruction_description;
     QTreeView* binary_list;