Made a few methods static

This commit is contained in:
RogueException
2016-10-11 23:45:27 -03:00
parent bf10529f80
commit 1057ee012a

View File

@@ -1065,16 +1065,16 @@ namespace Discord.API
}
}
private string GetEndpoint(Expression<Func<string>> endpointExpr)
private static string GetEndpoint(Expression<Func<string>> endpointExpr)
{
return endpointExpr.Compile()();
}
private string GetBucketId(BucketIds ids, Expression<Func<string>> endpointExpr, string callingMethod)
private static string GetBucketId(BucketIds ids, Expression<Func<string>> endpointExpr, string callingMethod)
{
return _bucketIdGenerators.GetOrAdd(callingMethod, x => CreateBucketId(endpointExpr))(ids);
}
private Func<BucketIds, string> CreateBucketId(Expression<Func<string>> endpoint)
private static Func<BucketIds, string> CreateBucketId(Expression<Func<string>> endpoint)
{
try
{