Removed unused sort_list and iconize_list MP preferences

These have no effect in the GUI2 lobby, nor do I intend to make use of them (plus the lobby has
its own sort controls anyway). I'm assuming they were for the GUI1 lobby.
This commit is contained in:
Charles Dang 2017-11-10 14:31:32 +11:00
parent 68f4d6b290
commit 457d42f200
4 changed files with 3 additions and 65 deletions

View File

@ -73,34 +73,6 @@
{_GUI_PREFERENCES_SPACER_ROW}
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[toggle_button]
id = "lobby_sort_players"
label = _ "Sort lobby list"
tooltip= _ "Sort the player list in the lobby by player groups"
[/toggle_button]
[/column]
[/row]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[toggle_button]
id = "lobby_player_icons"
label = _ "Iconize lobby list"
tooltip= _ "Show icons in front of the player names in the lobby"
[/toggle_button]
[/column]
[/row]
[row]
[column]
border = "top,left,right"
@ -327,7 +299,7 @@
{_GUI_PREFERENCES_SPACER_ROW}
[row]
[column]
horizontal_grow = true
border = "left,right"
@ -338,9 +310,9 @@
definition = "default_small"
label = _ "You have not befriended or ignored any other players."
[/label]
[/column]
[/row]
[row]

View File

@ -489,14 +489,6 @@ void preferences_dialog::post_build(window& window)
register_bool("remember_password", true,
remember_password, set_remember_password);
/* SORT LOBBY LIST */
register_bool("lobby_sort_players", true,
sort_list, _set_sort_list);
/* ICONIZE LOBBY LIST */
register_bool("lobby_player_icons", true,
iconize_list, _set_iconize_list);
/* WHISPERS FROM FRIENDS ONLY */
register_bool("lobby_whisper_friends_only", true,
whisper_friends_only, set_whisper_friends_only);

View File

@ -18,26 +18,6 @@
namespace preferences {
bool sort_list()
{
return preferences::get("sort_list", true);
}
void _set_sort_list(bool sort)
{
preferences::set("sort_list", sort);
}
bool iconize_list()
{
return preferences::get("iconize_list", true);
}
void _set_iconize_list(bool sort)
{
preferences::set("iconize_list", sort);
}
bool whisper_friends_only()
{
return preferences::get("lobby_whisper_friends_only", false);

View File

@ -18,12 +18,6 @@
namespace preferences {
bool sort_list();
void _set_sort_list(bool show);
bool iconize_list();
void _set_iconize_list(bool show);
bool whisper_friends_only();
void set_whisper_friends_only(bool v);