From 862e8d27b0ee46075a5b19d331b717d97f3ce6b3 Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Fri, 29 Nov 2024 10:29:29 +0000 Subject: [PATCH] Remove unused staffIdentifier field --- .../digital/hmpps/data/generator/EventDetailsGenerator.kt | 1 - .../digital/hmpps/data/generator/StaffMemberGenerator.kt | 2 -- .../digital/hmpps/integrations/approvedpremises/StaffMember.kt | 1 - 3 files changed, 4 deletions(-) diff --git a/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/EventDetailsGenerator.kt b/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/EventDetailsGenerator.kt index 92bb18ed0e..eb5b90b22a 100644 --- a/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/EventDetailsGenerator.kt +++ b/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/EventDetailsGenerator.kt @@ -98,7 +98,6 @@ object EventDetailsGenerator { private fun staffMember(staff: Staff, username: String? = null) = StaffMember( username = username, staffCode = staff.code, - staffIdentifier = staff.id, forenames = staff.forename, surname = staff.surname ) diff --git a/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/StaffMemberGenerator.kt b/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/StaffMemberGenerator.kt index 21d0e51b56..404359225e 100644 --- a/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/StaffMemberGenerator.kt +++ b/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/StaffMemberGenerator.kt @@ -7,13 +7,11 @@ object StaffMemberGenerator { fun generate( staffCode: String = "N54A001", - staffIdentifier: Long = 1501234567, forenames: String = "John", surname: String = "Smith", username: String? = null ) = StaffMember( staffCode = staffCode, - staffIdentifier = staffIdentifier, forenames = forenames, surname = surname, username = username diff --git a/projects/approved-premises-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/approvedpremises/StaffMember.kt b/projects/approved-premises-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/approvedpremises/StaffMember.kt index 00205427ac..c673ab72f3 100644 --- a/projects/approved-premises-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/approvedpremises/StaffMember.kt +++ b/projects/approved-premises-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/approvedpremises/StaffMember.kt @@ -2,7 +2,6 @@ package uk.gov.justice.digital.hmpps.integrations.approvedpremises data class StaffMember( val staffCode: String, - val staffIdentifier: Long, val forenames: String, val surname: String, val username: String?