Make truncate and getBeatmapID static

Code quality was complaining about hidden variables so I opted for this solution.
This commit is contained in:
jvyden 2024-03-01 00:02:20 -05:00
parent 060e17e989
commit 92235e7789
No known key found for this signature in database
GPG Key ID: 18BCF2BE0262B278
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{