Remove dead code

This commit is contained in:
o9000
2018-01-19 20:49:38 +00:00
parent b70edc437c
commit 28b1174c0f
9 changed files with 15 additions and 41 deletions

View File

@@ -287,11 +287,10 @@ int button_compute_desired_size(void *obj)
icon_h = icon_w = 0;
}
int txt_height_ink, txt_height, txt_width;
int txt_height, txt_width;
if (button->backend->text) {
if (panel_horizontal) {
get_text_size2(button->backend->font_desc,
&txt_height_ink,
&txt_height,
&txt_width,
panel->area.height,
@@ -304,7 +303,6 @@ int button_compute_desired_size(void *obj)
panel->scale);
} else {
get_text_size2(button->backend->font_desc,
&txt_height_ink,
&txt_height,
&txt_width,
panel->area.height,
@@ -318,7 +316,7 @@ int button_compute_desired_size(void *obj)
panel->scale);
}
} else {
txt_height_ink = txt_height = txt_width = 0;
txt_height = txt_width = 0;
}
if (panel_horizontal) {
@@ -371,10 +369,9 @@ gboolean resize_button(void *obj)
available_h = panel->area.height;
}
int txt_height_ink, txt_height, txt_width;
int txt_height, txt_width;
if (button->backend->text) {
get_text_size2(button->backend->font_desc,
&txt_height_ink,
&txt_height,
&txt_width,
available_h,
@@ -386,7 +383,7 @@ gboolean resize_button(void *obj)
FALSE,
panel->scale);
} else {
txt_height_ink = txt_height = txt_width = 0;
txt_height = txt_width = 0;
}
gboolean result = FALSE;