Skip to content

Commit c1aff68

Browse files
authored
chore: Remove unused functionality and imports ValidationHelper.cs (#818)
1 parent 675d3bf commit c1aff68

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

application/CohortManager/src/Functions/Shared/Common/ValidationHelper.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
namespace Common;
22

3-
using System.Diagnostics.Eventing.Reader;
43
using System.Globalization;
5-
using System.Reflection.Metadata;
64

75
public static class ValidationHelper
86
{
97

10-
private static readonly string[] DateFormats = ["yyyyMMdd", "yyyyMM", "yyyy", "yyyy-MM-dd", "dd/MM/yyyy HH:mm:ss", "d/MM/yyyy hh:mm:ss tt", "dd/MM/yyyy HH:mm:ss tt", "yyyy"];
8+
private static readonly string[] DateFormats = ["yyyyMMdd", "yyyyMM", "yyyy", "yyyy-MM-dd", "dd/MM/yyyy HH:mm:ss", "d/MM/yyyy hh:mm:ss tt", "dd/MM/yyyy HH:mm:ss tt"];
119
private static readonly string NilReturnFileNhsNumber = "0000000000";
1210
// Validates that the date is not in the future and that it is in one of the expected formats
1311
public static bool ValidatePastDate(string dateString)
@@ -19,11 +17,7 @@ public static bool ValidatePastDate(string dateString)
1917
}
2018
return false;
2119
}
22-
public static bool IsValidDate(string dateString)
23-
{
24-
var date = ParseDate(dateString);
25-
return date.HasValue;
26-
}
20+
2721
public static bool ValidateNHSNumber(string nhsNumber)
2822
{
2923
// Check the NHS number is a number

0 commit comments

Comments
 (0)