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") -}