Clean up enum sorting attribute code

This commit is contained in:
Dean Herbert
2020-04-16 17:26:09 +09:00
parent 86e8aaa2f4
commit 2ab4a7293e
3 changed files with 56 additions and 42 deletions

View File

@ -1,12 +1,12 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.ComponentModel;
using osu.Framework.IO.Network;
using osu.Game.Overlays;
using osu.Game.Overlays.Direct;
using osu.Game.Rulesets;
using osu.Game.Utils;
namespace osu.Game.Online.API.Requests
{
@ -139,20 +139,4 @@ namespace osu.Game.Online.API.Requests
[Order(5)]
Italian
}
[AttributeUsage(AttributeTargets.Field)]
public class OrderAttribute : Attribute
{
public readonly int Order;
public OrderAttribute(int order)
{
Order = order;
}
}
[AttributeUsage(AttributeTargets.Enum)]
public class HasOrderedElementsAttribute : Attribute
{
}
}