1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:07:23 +08:00

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

View File

@ -200,7 +200,7 @@ namespace osu.Desktop
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 @@ namespace osu.Desktop
return true;
}
private int? getBeatmapID(UserActivity activity)
private static int? getBeatmapID(UserActivity activity)
{
switch (activity)
{