Skip to content

Commit

Permalink
Cleaning warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
GinoCanessa committed Jan 27, 2025
1 parent 3ba9238 commit d4749ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 51 deletions.
53 changes: 4 additions & 49 deletions src/FhirStore.CommonVersioned/Search/FhirSortComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ public int Compare(Resource? x, Resource? y)
if ((xValue is IFhirValueProvider xFvp) &&
(yValue is IFhirValueProvider yFvp))
{
//if (xFvp.FhirValue.TypeName != yFvp.FhirValue.TypeName)
//{
// continue;
//}

switch (xFvp.FhirValue)
{
case IComparable xIC:
Expand Down Expand Up @@ -256,53 +251,13 @@ public int Compare(Resource? x, Resource? y)
break;

default:
if (false)
{
Console.Write("");
}
//if (false)
//{
// Console.Write("");
//}
break;
}


//if ((xFvp.FhirValue is IComparable xFvc) &&
// (yFvp.FhirValue is IComparable yFvc))
//{
// int result = xFvc.CompareTo(yFvc);
// if (result != 0)
// {
// return sr.Ascending ? result : -result;
// }

// continue;
//}

//if ((xFvp.FhirValue is Period xPeriod) &&
// (yFvp.FhirValue is Period yPeriod))
//{
// int result = xPeriod.Start?.CompareTo(yPeriod.Start) ?? 0;
// if (result != 0)
// {
// return sr.Ascending ? result : -result;
// }

// result = xPeriod.End?.CompareTo(yPeriod.End) ?? 0;
// if (result != 0)
// {
// return sr.Ascending ? result : -result;
// }
//}
}

//if (xValue.Value == null)
//{
// return sr.Ascending ? -1 : 1;
//}

//if (yValue.Value == null)
//{
// return sr.Ascending ? 1 : -1;
//}

}

return 0;
Expand Down
4 changes: 2 additions & 2 deletions src/fhir-candle.Tests/CompartmentTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private Bundle SearchResource(VersionedFhirStore versionedFhirStore, String sear
result.GetType().ToString().ShouldBe("Hl7.Fhir.Model.Bundle");

var bundle = result as Bundle;
return bundle;
return bundle!;
}

private void putResource(VersionedFhirStore versionedFhirStore, Resource resource)
Expand All @@ -135,7 +135,7 @@ private void putResource(VersionedFhirStore versionedFhirStore, Resource resourc
Store = versionedFhirStore,
HttpMethod = "PUT",
SourceObject = resource,
Url = null,
Url = string.Empty,
Authorization = null,
};
versionedFhirStore.InstanceUpdate(ctx, out FhirResponseContext opResponse);
Expand Down

0 comments on commit d4749ae

Please sign in to comment.