From e0a5bd86d71b862abe085c56099e60c84e314c7e Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 23 Apr 2024 15:10:44 +0100 Subject: [PATCH] Remove hasGuard option --- cif/convert.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cif/convert.go b/cif/convert.go index 9dcd1ed..4160353 100644 --- a/cif/convert.go +++ b/cif/convert.go @@ -2,7 +2,6 @@ package cif import ( "strconv" - "strings" "git.fjla.uk/owlboard/go-types/pkg/database" "git.fjla.uk/owlboard/go-types/pkg/upstreamApi" @@ -95,7 +94,6 @@ func generateServiceDetail( Catering: hasCatering(cateringCode), Sleeper: hasSleeper(sleepers), Vstp: vstp, - Guard: hasGuard(operatingCharacteristics), } } @@ -129,10 +127,3 @@ func hasSleeper(input *string) bool { } return *input != "" } - -// Ascertains whether the service requires a guard -// This option is not accurate and will likely be removed in the future -func hasGuard(opChars *string) bool { - str := strings.ToLower(*opChars) - return strings.Contains(str, "g") -}