Cleaned up some unused code

This was left around after switching the dialog to a unit preview pane widget.
This commit is contained in:
Charles Dang 2016-08-04 08:09:40 +11:00
parent 7e0c853f42
commit e2d48f4482
3 changed files with 0 additions and 158 deletions

View file

@ -3,154 +3,6 @@
### Definition of the window select which unit to attack
###
#define _GUI_BIG_ATTACKER_PANEL
[grid]
id = "attacker"
linked_group = "unit"
[row]
grow_factor = 1
[column]
horizontal_alignment = "center"
vertical_alignment = "center"
border = "all"
border_size = 5
[image]
id = "attacker_image"
[/image]
[/column]
[column]
grow_factor = 1
horizontal_alignment = "right"
[grid]
[row]
grow_factor = 1
[column]
horizontal_alignment = "right"
border = "all"
border_size = 5
[label]
id = "attacker_stats"
definition = "default"
text_alignment = "right"
[/label]
[/column]
[/row]
[row]
[column]
horizontal_alignment = "right"
border = "all"
border_size = 5
[button]
id = "attacker_profile"
definition = "default"
label = _ "Profile"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
#enddef
#define _GUI_BIG_DEFENDER_PANEL
[grid]
id = "defender"
linked_group = "unit"
[row]
grow_factor = 1
[column]
grow_factor = 1
horizontal_alignment = "left"
[grid]
[row]
grow_factor = 1
[column]
horizontal_alignment = "left"
border = "all"
border_size = 5
[label]
id = "defender_stats"
definition = "default"
text_alignment = "left"
[/label]
[/column]
[/row]
[row]
grow_factor = 1
[column]
horizontal_alignment = "left"
border = "all"
border_size = 5
[button]
id = "defender_profile"
definition = "default"
label = _ "Profile"
[/button]
[/column]
[/row]
[/grid]
[/column]
[column]
horizontal_alignment = "center"
vertical_alignment = "center"
border = "all"
border_size = 5
[image]
id = "defender_image"
[/image]
[/column]
[/row]
[/grid]
#enddef
#define _GUI_BIG_UNIT_PANEL
[grid]
@ -503,9 +355,6 @@
[/window]
#undef _GUI_BIG_ATTACKER_PANEL
#undef _GUI_BIG_DEFENDER_PANEL
#undef _GUI_BIG_UNIT_PANEL
#undef _GUI_BIG_WEAPON_PANEL
#undef _GUI_BUTTON_ROW

View file

@ -174,11 +174,6 @@ static void set_weapon_info(twindow& window,
weapon_list.select_row(best_weapon);
}
void tunit_attack::profile_button_callback(twindow& window, const std::string& type)
{
help::show_unit_help(window.video(), type);
}
void tunit_attack::damage_calc_callback(twindow& window)
{
const int selection

View file

@ -47,8 +47,6 @@ private:
/** Inherited from tdialog. */
void post_show(twindow& window);
void profile_button_callback(twindow& window, const std::string& type);
void damage_calc_callback(twindow& window);
/** The index of the selected weapon. */