Skip to content

Commit

Permalink
Remove unused method TestIfCodedEnum in ElementIndexer
Browse files Browse the repository at this point in the history
Also remove an old comment that is outdated and no longer needed.
  • Loading branch information
kennethmyhra committed Aug 29, 2024
1 parent aa1e57d commit eb91f0c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Spark.Engine/Search/ElementIndexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

namespace Spark.Engine.Search
{
//This class is not static because it needs a IFhirModel to do some of the indexing (especially enums).
public class ElementIndexer
{
private readonly SparkEngineEventSource _log = SparkEngineEventSource.Log;
Expand All @@ -42,21 +41,6 @@ private List<Expression> ListOf(params Expression[] args)
return result;
}

private bool TestIfCodedEnum(Type type)
{
if (type == null)
{
throw new ArgumentNullException("type");
}

bool? codedEnum = type.GenericTypeArguments?.FirstOrDefault()?.IsEnum;
if (codedEnum.HasValue && codedEnum.Value)
{
return true;
}
return false;
}

/// <summary>
/// Maps element to a list of Expression.
/// </summary>
Expand Down

0 comments on commit eb91f0c

Please sign in to comment.