Skip to content

Commit

Permalink
[Color] Remove obsolete warning from Parse overload
Browse files Browse the repository at this point in the history
Overload with bracketLevel parameter is still being used
in some projects.
  • Loading branch information
hyazinthh committed Mar 21, 2024
1 parent e1ab96a commit b76ee76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions src/Aardvark.Base/Math/Colors/Color_auto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,6 @@ public static C3b Parse(string s, IFormatProvider provider)
public static C3b Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static C3b Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<byte>.Parse, C3b.Setter);
Expand Down Expand Up @@ -3946,7 +3945,6 @@ public static C3us Parse(string s, IFormatProvider provider)
public static C3us Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static C3us Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<ushort>.Parse, C3us.Setter);
Expand Down Expand Up @@ -6144,7 +6142,6 @@ public static C3ui Parse(string s, IFormatProvider provider)
public static C3ui Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static C3ui Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<uint>.Parse, C3ui.Setter);
Expand Down Expand Up @@ -8217,7 +8214,6 @@ public static C3f Parse(string s, IFormatProvider provider)
public static C3f Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static C3f Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<float>.Parse, C3f.Setter);
Expand Down Expand Up @@ -10327,7 +10323,6 @@ public static C3d Parse(string s, IFormatProvider provider)
public static C3d Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static C3d Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<double>.Parse, C3d.Setter);
Expand Down Expand Up @@ -12957,7 +12952,6 @@ public static C4b Parse(string s, IFormatProvider provider)
public static C4b Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static C4b Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<byte>.Parse, C4b.Setter);
Expand Down Expand Up @@ -15516,7 +15510,6 @@ public static C4us Parse(string s, IFormatProvider provider)
public static C4us Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static C4us Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<ushort>.Parse, C4us.Setter);
Expand Down Expand Up @@ -17980,7 +17973,6 @@ public static C4ui Parse(string s, IFormatProvider provider)
public static C4ui Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static C4ui Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<uint>.Parse, C4ui.Setter);
Expand Down Expand Up @@ -20234,7 +20226,6 @@ public static C4f Parse(string s, IFormatProvider provider)
public static C4f Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static C4f Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<float>.Parse, C4f.Setter);
Expand Down Expand Up @@ -22528,7 +22519,6 @@ public static C4d Parse(string s, IFormatProvider provider)
public static C4d Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static C4d Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<double>.Parse, C4d.Setter);
Expand Down
1 change: 0 additions & 1 deletion src/Aardvark.Base/Math/Colors/Color_template.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,6 @@ public static __type__ Parse(string s, IFormatProvider provider)
public static __type__ Parse(string s)
=> Parse(new Text(s));

[Obsolete("Weird overload with level, call NestedBracketSplit() manually instead.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static __type__ Parse(Text t, int bracketLevel = 1)
=> t.NestedBracketSplit(bracketLevel, Text<__ftype__>.Parse, __type__.Setter);
Expand Down

0 comments on commit b76ee76

Please sign in to comment.