Remove hasGuard option

This commit is contained in:
Fred Boniface 2024-04-23 15:10:44 +01:00
parent 73fd0063eb
commit e0a5bd86d7
1 changed files with 0 additions and 9 deletions

View File

@ -2,7 +2,6 @@ package cif
import ( import (
"strconv" "strconv"
"strings"
"git.fjla.uk/owlboard/go-types/pkg/database" "git.fjla.uk/owlboard/go-types/pkg/database"
"git.fjla.uk/owlboard/go-types/pkg/upstreamApi" "git.fjla.uk/owlboard/go-types/pkg/upstreamApi"
@ -95,7 +94,6 @@ func generateServiceDetail(
Catering: hasCatering(cateringCode), Catering: hasCatering(cateringCode),
Sleeper: hasSleeper(sleepers), Sleeper: hasSleeper(sleepers),
Vstp: vstp, Vstp: vstp,
Guard: hasGuard(operatingCharacteristics),
} }
} }
@ -129,10 +127,3 @@ func hasSleeper(input *string) bool {
} }
return *input != "" 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")
}