Cleaned up virtual methods
This commit is contained in:
@@ -41,7 +41,7 @@ namespace Discord.Rest
|
||||
if (model.Recipients.IsSpecified)
|
||||
UpdateUsers(model.Recipients.Value);
|
||||
}
|
||||
internal virtual void UpdateUsers(API.User[] models)
|
||||
internal void UpdateUsers(API.User[] models)
|
||||
{
|
||||
var users = ImmutableDictionary.CreateBuilder<ulong, RestGroupUser>();
|
||||
for (int i = 0; i < models.Length; i++)
|
||||
|
||||
@@ -300,7 +300,7 @@ namespace Discord.Audio
|
||||
catch (OperationCanceledException) { }
|
||||
}
|
||||
|
||||
internal virtual void Dispose(bool disposing)
|
||||
internal void Dispose(bool disposing)
|
||||
{
|
||||
if (!_isDisposed)
|
||||
_isDisposed = true;
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Discord.WebSocket
|
||||
if (model.Recipients.IsSpecified)
|
||||
UpdateUsers(state, model.Recipients.Value);
|
||||
}
|
||||
internal virtual void UpdateUsers(ClientState state, UserModel[] models)
|
||||
private void UpdateUsers(ClientState state, UserModel[] models)
|
||||
{
|
||||
var users = new ConcurrentDictionary<ulong, SocketGroupUser>(ConcurrentHashSet.DefaultConcurrencyLevel, (int)(models.Length * 1.05));
|
||||
for (int i = 0; i < models.Length; i++)
|
||||
|
||||
Reference in New Issue
Block a user