Remove Widget::user_data and theme_data fields

This commit is contained in:
David Capello 2014-11-25 22:46:50 -03:00
parent 512c7d4ecf
commit 1b3d8650bd
4 changed files with 0 additions and 17 deletions

View File

@ -233,7 +233,6 @@ void ColorButton::openSelectorDialog()
if (m_window == NULL) {
m_window = new ColorSelector();
m_window->user_data[0] = this;
m_window->ColorChange.connect(&ColorButton::onWindowColorChange, this);
}

View File

@ -169,7 +169,6 @@ StatusBar::StatusBar()
#define BUTTON_NEW(name, text, action) \
{ \
(name) = new Button(text); \
(name)->user_data[0] = this; \
setup_mini_look(name); \
(name)->Click.connect(Bind<void>(&ani_button_command, (name), action)); \
}

View File

@ -83,16 +83,6 @@ Widget::Widget(WidgetType type)
this->m_font = (this->m_theme ? this->m_theme->default_font: NULL);
this->m_bgColor = gfx::ColorNone;
this->theme_data[0] = NULL;
this->theme_data[1] = NULL;
this->theme_data[2] = NULL;
this->theme_data[3] = NULL;
this->user_data[0] = NULL;
this->user_data[1] = NULL;
this->user_data[2] = NULL;
this->user_data[3] = NULL;
m_preferredSize = NULL;
m_doubleBuffered = false;
m_transparent = false;

View File

@ -59,11 +59,6 @@ namespace ui {
int max_w, max_h;
public:
// Extra data for the theme
void *theme_data[4];
/* for user */
void *user_data[4];
// ===============================================================
// CTOR & DTOR