From 02ba5a7cd11c488ca475928e278d77b63492b3bf Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 23 Feb 2021 17:24:42 +0100 Subject: [PATCH] Remove unused Tabbable tab_title (3/3) --- libs/widgets/tabbable.cc | 4 ++-- libs/widgets/widgets/tabbable.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/widgets/tabbable.cc b/libs/widgets/tabbable.cc index 170ef8e6d1..315f01c3fd 100644 --- a/libs/widgets/tabbable.cc +++ b/libs/widgets/tabbable.cc @@ -54,7 +54,7 @@ Tabbable::~Tabbable () } void -Tabbable::add_to_notebook (Notebook& notebook, const string& tab_title) +Tabbable::add_to_notebook (Notebook& notebook) { _parent_notebook = ¬ebook; @@ -312,7 +312,7 @@ Tabbable::show_tab () if (!window_visible() && _parent_notebook) { if (_contents.get_parent() == 0) { tab_requested_by_state = true; - add_to_notebook (*_parent_notebook, _tab_title); + add_to_notebook (*_parent_notebook); } _parent_notebook->set_current_page (_parent_notebook->page_num (_contents)); _contents.show (); diff --git a/libs/widgets/widgets/tabbable.h b/libs/widgets/widgets/tabbable.h index ff9dae4207..ec19bb4f33 100644 --- a/libs/widgets/widgets/tabbable.h +++ b/libs/widgets/widgets/tabbable.h @@ -47,7 +47,7 @@ public: Tabbable (Gtk::Widget&, const std::string& user_visible_name, std::string const & untranslated_name, bool tabbed_by_default = true); ~Tabbable (); - void add_to_notebook (Gtk::Notebook& notebook, const std::string& tab_title = ""); + void add_to_notebook (Gtk::Notebook& notebook); void make_visible (); void make_invisible (); void change_visibility (); @@ -89,7 +89,6 @@ private: Gtk::Widget& _contents; Gtk::Notebook _own_notebook; Gtk::Notebook* _parent_notebook; - std::string _tab_title; bool tab_requested_by_state; void show_tab ();