From eebe980021e2ceadeda198bd4120ddcfea8313d4 Mon Sep 17 00:00:00 2001 From: Kasdejong Date: Thu, 5 Dec 2024 20:26:10 +0100 Subject: [PATCH] accidentally duplicated this --- src/Hl7.Fhir.Base/FhirPath/EvaluationContext.cs | 10 ---------- 1 file changed, 10 deletions(-) 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