diff --git a/src/Hl7.Fhir.Base/FhirPath/EvaluationContext.cs b/src/Hl7.Fhir.Base/FhirPath/EvaluationContext.cs index ec5465ddf..b0d0a5ab0 100644 --- a/src/Hl7.Fhir.Base/FhirPath/EvaluationContext.cs +++ b/src/Hl7.Fhir.Base/FhirPath/EvaluationContext.cs @@ -72,14 +72,4 @@ public static T WithResourceOverrides(this T context, IScopedNode? resource, context.RootResource = rootResource ?? resource; return context; } -} - -public static class EvaluationContextExtensions -{ - public static T WithResourceOverrides(this T context, ITypedElement? resource, ITypedElement? rootResource = null) where T : EvaluationContext - { - context.Resource = resource; - context.RootResource = rootResource ?? resource; - return context; - } } \ No newline at end of file