Skip to content

Commit

Permalink
Removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
RLCorp committed Sep 18, 2024
1 parent 882ed28 commit 8835d48
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

<vehicle-registration
(alternateEvidenceChange)="getMOTEvidenceProvided($event)"
(vehicleRegistrationBlur)="getMOTStatus()"
(vehicleRegistrationChange)="vehicleRegistrationChanged($event)"
(vrnSearchListUpdate)="updateVRNSearchList($event)"
(motDetailsUpdate)="motDetailsChanged($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
<ion-col class="ion-no-padding">
<vehicle-registration
(alternateEvidenceChange)="getMOTEvidenceProvided($event)"
(vehicleRegistrationBlur)="getMOTStatus()"
(vehicleRegistrationChange)="vehicleRegistrationChanged($event)"
(vrnSearchListUpdate)="updateVRNSearchList($event)"
(motDetailsUpdate)="motDetailsChanged($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

<vehicle-registration
(alternateEvidenceChange)="getMOTEvidenceProvided($event)"
(vehicleRegistrationBlur)="getMOTStatus()"
(vehicleRegistrationChange)="vehicleRegistrationChanged($event)"
(vrnSearchListUpdate)="updateVRNSearchList($event)"
(motDetailsUpdate)="motDetailsChanged($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<ion-col class="ion-no-padding">
<vehicle-registration
(alternateEvidenceChange)="getMOTEvidenceProvided($event)"
(vehicleRegistrationBlur)="getMOTStatus()"
(vehicleRegistrationChange)="vehicleRegistrationChanged($event)"
(vrnSearchListUpdate)="updateVRNSearchList($event)"
(motDetailsUpdate)="motDetailsChanged($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<ion-col class="ion-no-padding">
<vehicle-registration
(alternateEvidenceChange)="getMOTEvidenceProvided($event)"
(vehicleRegistrationBlur)="getMOTStatus()"
(vehicleRegistrationChange)="vehicleRegistrationChanged($event)"
(vrnSearchListUpdate)="updateVRNSearchList($event)"
(motDetailsUpdate)="motDetailsChanged($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

<vehicle-registration
(alternateEvidenceChange)="getMOTEvidenceProvided($event)"
(vehicleRegistrationBlur)="getMOTStatus()"
(vehicleRegistrationChange)="vehicleRegistrationChanged($event)"
(vrnSearchListUpdate)="updateVRNSearchList($event)"
(motDetailsUpdate)="motDetailsChanged($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

<vehicle-registration
(alternateEvidenceChange)="getMOTEvidenceProvided($event)"
(vehicleRegistrationBlur)="getMOTStatus()"
(vehicleRegistrationChange)="vehicleRegistrationChanged($event)"
(vrnSearchListUpdate)="updateVRNSearchList($event)"
(motDetailsUpdate)="motDetailsChanged($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

<vehicle-registration
(alternateEvidenceChange)="getMOTEvidenceProvided($event)"
(vehicleRegistrationBlur)="getMOTStatus()"
(vehicleRegistrationChange)="vehicleRegistrationChanged($event)"
(vrnSearchListUpdate)="updateVRNSearchList($event)"
(motDetailsUpdate)="motDetailsChanged($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
<ion-col class="ion-no-padding">
<vehicle-registration
(alternateEvidenceChange)="getMOTEvidenceProvided($event)"
(vehicleRegistrationBlur)="getMOTStatus()"
(vehicleRegistrationChange)="vehicleRegistrationChanged($event)"
(vrnSearchListUpdate)="updateVRNSearchList($event)"
(motDetailsUpdate)="motDetailsChanged($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<ion-col class="ion-no-padding">
<vehicle-registration
(alternateEvidenceChange)="getMOTEvidenceProvided($event)"
(vehicleRegistrationBlur)="getMOTStatus()"
(vehicleRegistrationChange)="vehicleRegistrationChanged($event)"
(vrnSearchListUpdate)="updateVRNSearchList($event)"
(motDetailsUpdate)="motDetailsChanged($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ export class VehicleRegistrationComponent implements OnChanges {
@Output()
motFailedModalToggled = new EventEmitter<boolean>();
@Output()
vehicleRegistrationBlur = new EventEmitter<string>();
@Output()
alternateEvidenceChange = new EventEmitter<boolean>();
@Output()
vrnSearchListUpdate = new EventEmitter<string>();
Expand Down Expand Up @@ -175,12 +173,6 @@ export class VehicleRegistrationComponent implements OnChanges {
if (!this.formControl) {
this.formControl = new UntypedFormControl(null, [Validators.required]);
this.formGroup.addControl('vehicleRegistration', this.formControl);

// if vehicleRegistration already set using VRN early modal and not interacted with here,
// we trick the component into dispatching the emission
if (this.vehicleRegistration != null) {
this.onBlurEvent(this.vehicleRegistration);
}
}
this.formControl.patchValue(this.vehicleRegistration);
}
Expand All @@ -199,10 +191,6 @@ export class VehicleRegistrationComponent implements OnChanges {
this.vehicleRegistrationChange.emit(event.target.value?.toUpperCase());
}

onBlurEvent = (vehicleRegistration: string): void => {
this.vehicleRegistrationBlur.emit(vehicleRegistration);
};

protected readonly ConnectionStatus = ConnectionStatus;

isMOTNotValid() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,6 @@ export abstract class WaitingRoomToCarBasePageComponent extends PracticeableBase
this.store$.dispatch(VehicleRegistrationChanged(vehicleRegistration));
}

getMOTStatus(): void {
// Temporarily disable the call to the MOT endpoint as it's not being used.
// this.store$.dispatch(GetMotStatus());
}
getMOTEvidenceProvided(evidenceToggle: boolean): void {
this.store$.dispatch(MotEvidenceProvidedToggled(evidenceToggle));
}
Expand Down

0 comments on commit 8835d48

Please sign in to comment.