Remove dead code that caused warning
−9 · 2 files changed
-
actions.cc+0 −8 -
actions.h+0 −1
@@ -213,7 +213,6 @@ Actions::Actions() : button_remove_app->signal_clicked().connect(sigc::mem_fun(*this, &Actions::on_remove_app)); button_reset_actions->signal_clicked().connect(sigc::mem_fun(*this, &Actions::on_reset_actions)); - tv.signal_cursor_changed().connect(sigc::mem_fun(*this, &Actions::on_cursor_changed)); tv.signal_row_activated().connect(sigc::mem_fun(*this, &Actions::on_row_activated)); tv.get_selection()->signal_changed().connect(sigc::mem_fun(*this, &Actions::on_selection_changed)); @@ -833,13 +832,6 @@ void Actions::on_button_record() { on_row_activated(path, col); } -void Actions::on_cursor_changed() { - Gtk::TreeModel::Path path; - Gtk::TreeViewColumn *col; - tv.get_cursor(path, col); - Gtk::TreeRow row(*tm->get_iter(path)); -} - Gtk::TreeRow Actions::get_selected_row() { std::vector<Gtk::TreePath> paths = tv.get_selection()->get_selected_rows(); return Gtk::TreeRow(*tm->get_iter(*paths.begin())); @@ -41,7 +41,6 @@ private: void on_button_new(); void on_button_record(); void on_selection_changed(); - void on_cursor_changed(); void on_name_edited(const Glib::ustring& path, const Glib::ustring& new_text); void on_text_edited(const Glib::ustring& path, const Glib::ustring& new_text); void on_type_edited(const Glib::ustring& path, const Glib::ustring& new_text);