aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-01-01 14:43:02 -0600
committerJP Dillingham <jp@dillingham.me>2024-01-01 14:43:02 -0600
commit0a54bc4d58c2400bc9cad1ec227c9b951a6b6bd3 (patch)
tree2f20435a8952820031a04beda3dbd7c5426cae2d /src
parent69b3cab94cdd446627ec86e81232d0e2cc810734 (diff)
downloadslskd-0a54bc4d58c2400bc9cad1ec227c9b951a6b6bd3.tar.gz
remove users from state
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/State.cs24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/slskd/Core/State.cs b/src/slskd/Core/State.cs
index 9ae6df6b..3a0c8c11 100644
--- a/src/slskd/Core/State.cs
+++ b/src/slskd/Core/State.cs
@@ -23,7 +23,6 @@ namespace slskd
using System.Net;
using System.Text.Json.Serialization;
using slskd.Relay;
- using slskd.Users;
using Soulseek;
/// <summary>
@@ -36,11 +35,9 @@ namespace slskd
public bool PendingRestart { get; init; }
public ServerState Server { get; init; } = new ServerState();
public RelayState Relay { get; init; } = new RelayState();
- public UserState User { get; init; } = new UserState();
public DistributedNetworkState DistributedNetwork { get; init; } = new DistributedNetworkState();
public ShareState Shares { get; init; } = new ShareState();
public string[] Rooms { get; init; } = Array.Empty<string>();
- public User[] Users { get; init; } = Array.Empty<User>();
}
public record VersionState
@@ -78,27 +75,6 @@ namespace slskd
public RelayClientState State { get; init; } = RelayClientState.Disconnected;
}
- public record UserState
- {
- public string Username { get; init; }
- public UserPrivilegeState Privileges { get; init; } = new UserPrivilegeState();
- public UserStatisticsState Statistics { get; init; } = new UserStatisticsState();
- }
-
- public record UserPrivilegeState
- {
- public bool IsPrivileged { get; init; }
- public int PrivilegesRemaining { get; init; }
- }
-
- public record UserStatisticsState
- {
- public int AverageSpeed { get; init; }
- public int DirectoryCount { get; init; }
- public int FileCount { get; init; }
- public long UploadCount { get; init; }
- }
-
public record DistributedNetworkState
{
public int BranchLevel { get; init; }