mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:07:52 +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:
parent
060e17e989
commit
92235e7789
@ -200,7 +200,7 @@ namespace osu.Desktop
|
|||||||
|
|
||||||
private static readonly int ellipsis_length = Encoding.UTF8.GetByteCount(new[] { '…' });
|
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)
|
if (Encoding.UTF8.GetByteCount(str) <= 128)
|
||||||
return str;
|
return str;
|
||||||
@ -239,7 +239,7 @@ namespace osu.Desktop
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private int? getBeatmapID(UserActivity activity)
|
private static int? getBeatmapID(UserActivity activity)
|
||||||
{
|
{
|
||||||
switch (activity)
|
switch (activity)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user