mirror of https://github.com/ppy/osu
Make truncate and getBeatmapID static
Code quality was complaining about hidden variables so I opted for this solution.
This commit is contained in:
parent
060e17e989
commit
92235e7789
|
@ -200,7 +200,7 @@ private void onJoin(object sender, JoinMessage args)
|
|||
|
||||
private static readonly int ellipsis_length = Encoding.UTF8.GetByteCount(new[] { '…' });
|
||||
|
||||
private string truncate(string str)
|
||||
private static string truncate(string str)
|
||||
{
|
||||
if (Encoding.UTF8.GetByteCount(str) <= 128)
|
||||
return str;
|
||||
|
@ -239,7 +239,7 @@ private static bool tryParseRoomSecret(ReadOnlySpan<char> secret, out long roomI
|
|||
return true;
|
||||
}
|
||||
|
||||
private int? getBeatmapID(UserActivity activity)
|
||||
private static int? getBeatmapID(UserActivity activity)
|
||||
{
|
||||
switch (activity)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue