From cc29eff38bc8408ba41ca334462ee100726ff9f0 Mon Sep 17 00:00:00 2001 From: Charles Roddie Date: Sat, 30 Dec 2023 08:08:52 +0000 Subject: [PATCH] Remove EnumGetValues --- CSharpMath.Editor/SubIndexTypeMismatchException.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CSharpMath.Editor/SubIndexTypeMismatchException.cs b/CSharpMath.Editor/SubIndexTypeMismatchException.cs index 3333cd00..df3c7bb3 100644 --- a/CSharpMath.Editor/SubIndexTypeMismatchException.cs +++ b/CSharpMath.Editor/SubIndexTypeMismatchException.cs @@ -7,8 +7,6 @@ public class SubIndexTypeMismatchException : InvalidOperationException { public SubIndexTypeMismatchException(Type atomType, MathListIndex index) : base( $"{atomType} not found at index {index.AtomIndex}.") { } public SubIndexTypeMismatchException(MathListIndex index) : base( - Array.IndexOf(typeof(MathListSubIndexType).GetEnumValues(), index.SubIndexType) == -1 - ? $"{index.SubIndexType} is an invalid subindex type." - : $"{index.SubIndexType} not found at index {index.AtomIndex}.") { } + $"{index.SubIndexType} not found at index {index.AtomIndex}.") { } } }