From 13026a56add7fef3439376b0385edb1ed9d2b55a Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sun, 11 Apr 2021 20:11:28 -0400 Subject: [PATCH] clean up --- src/BSLManager/Domain/FollowersListState.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/BSLManager/Domain/FollowersListState.cs b/src/BSLManager/Domain/FollowersListState.cs index 8cf4fd9..f33acb8 100644 --- a/src/BSLManager/Domain/FollowersListState.cs +++ b/src/BSLManager/Domain/FollowersListState.cs @@ -6,10 +6,9 @@ namespace BSLManager.Domain { public class FollowersListState { - private List _displayableUserList = new List(); - private List _sourceUserList = new List(); + private readonly List _filteredDisplayableUserList = new List(); - private List _filteredDisplayableUserList = new List(); + private List _sourceUserList = new List(); private List _filteredSourceUserList = new List(); public void Load(List followers) @@ -23,13 +22,11 @@ namespace BSLManager.Domain { _filteredSourceUserList = _sourceUserList.ToList(); - _displayableUserList.Clear(); _filteredDisplayableUserList.Clear(); foreach (var follower in _sourceUserList) { var displayedUser = $"{GetFullHandle(follower)} ({follower.Followings.Count})"; - _displayableUserList.Add(displayedUser); _filteredDisplayableUserList.Add(displayedUser); } } @@ -71,7 +68,6 @@ namespace BSLManager.Domain var sourceUser = _filteredSourceUserList[index]; _filteredDisplayableUserList.Remove(displayableUser); - _displayableUserList.Remove(displayableUser); _filteredSourceUserList.Remove(sourceUser); _sourceUserList.Remove(sourceUser);