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