← easystroke

Remove dead code that caused warning

dc644abe4044d6138d820add344ca6b4818ff8e9 · Thomas Jaeger · Sep 7, 2012 03:25

−9 · 2 files changed

  • actions.cc +0 −8
  • actions.h +0 −1
diff --git a/actions.cc b/actions.cc
index b20d7b3..2c9cf1b 100644
--- a/actions.cc
+++ b/actions.cc
@@ -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()));
diff --git a/actions.h b/actions.h
index 9efa6ef..e164c11 100644
--- a/actions.h
+++ b/actions.h
@@ -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);