mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 16:42:55 +08:00
Remove useless function
This commit is contained in:
parent
2d7024ffd9
commit
6aef05f5d8
@ -73,7 +73,7 @@ namespace osu.Game.Overlays
|
||||
Filter.Tabs.Current.ValueChanged += _ => queueUpdate();
|
||||
|
||||
Filter.DisplayStyleControl.DisplayStyle.ValueChanged += style => recreatePanels(style.NewValue);
|
||||
Filter.DisplayStyleControl.Dropdown.Current.ValueChanged += _ => onDropdownChanged();
|
||||
Filter.DisplayStyleControl.Dropdown.Current.ValueChanged += _ => updateUsers(Users);
|
||||
|
||||
currentQuery.BindTo(Filter.Search.Current);
|
||||
currentQuery.ValueChanged += query =>
|
||||
@ -202,17 +202,6 @@ namespace osu.Game.Overlays
|
||||
private IEnumerable<User> sortBy<T>(IEnumerable<User> users, Func<User, T> condition, SortDirection sortDirection) =>
|
||||
sortDirection == SortDirection.Ascending ? users.OrderBy(condition) : users.OrderByDescending(condition);
|
||||
|
||||
private void onDropdownChanged()
|
||||
{
|
||||
if (Users == null)
|
||||
{
|
||||
queueUpdate();
|
||||
return;
|
||||
}
|
||||
|
||||
updateUsers(Users);
|
||||
}
|
||||
|
||||
private void clearPanels()
|
||||
{
|
||||
loading.Show();
|
||||
|
Loading…
Reference in New Issue
Block a user