gui: Remove Tab post_init() function

Nothing uses this anymore.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-04-16 15:32:49 -04:00
parent 3d89bf2563
commit 5bf861b9f3
3 changed files with 1 additions and 9 deletions

View File

@ -239,8 +239,7 @@ static void renumber_queues()
void on_pq_created(Queue *pq, unsigned int num) void on_pq_created(Queue *pq, unsigned int num)
{ {
QueueTab *tab = new QueueTab(pq, num); new QueueTab(pq, num);
tab->on_post_init();
} }
static void on_page_reordered(Gtk::Widget *page, int num) static void on_page_reordered(Gtk::Widget *page, int num)

View File

@ -219,8 +219,6 @@ void Tab :: tab_ban_selected()
* *
*/ */
void Tab :: on_post_init() {}
bool Tab :: on_key_press_event(const std::string &key) bool Tab :: on_key_press_event(const std::string &key)
{ {
if (key >= "0" && key <= "9") if (key >= "0" && key <= "9")
@ -465,10 +463,6 @@ void init_tabs()
void post_init_tabs() void post_init_tabs()
{ {
std::map<Queue *, Tab *>::iterator it;
for (it = queue_mapping.begin(); it != queue_mapping.end(); it++)
it->second->on_post_init();
post_init_queue_tabs(); post_init_queue_tabs();
unsigned int tab = 0; unsigned int tab = 0;

View File

@ -72,7 +72,6 @@ public:
/** /**
* internal callback functions that can be overridden if necessary * internal callback functions that can be overridden if necessary
*/ */
virtual void on_post_init();
virtual bool on_key_press_event(const std::string &); virtual bool on_key_press_event(const std::string &);
virtual void on_show_rc_menu(); virtual void on_show_rc_menu();