mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 05:52:55 +08:00
Drop complicated type constraints
This commit is contained in:
parent
80574423cb
commit
96a6e30a21
@ -19,8 +19,7 @@ using osu.Framework.Input;
|
||||
|
||||
namespace osu.Game.Overlays.Options
|
||||
{
|
||||
public class SliderOption<T> : FlowContainer
|
||||
where T : struct, IComparable, IFormattable, IConvertible, IComparable<T>, IEquatable<T>
|
||||
public class SliderOption<T> : FlowContainer where T : struct
|
||||
{
|
||||
private SliderBar<T> slider;
|
||||
private SpriteText text;
|
||||
@ -57,8 +56,7 @@ namespace osu.Game.Overlays.Options
|
||||
};
|
||||
}
|
||||
|
||||
private class OsuSliderBar<U> : SliderBar<U>
|
||||
where U : struct, IComparable, IFormattable, IConvertible, IComparable<U>, IEquatable<U>
|
||||
private class OsuSliderBar<U> : SliderBar<U> where U : struct
|
||||
{
|
||||
private AudioSample sample;
|
||||
private double lastSample;
|
||||
|
Loading…
Reference in New Issue
Block a user