Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterEvarior committed Nov 14, 2024
1 parent a5f9f80 commit 1006126
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export class CheckInFormComponent implements OnInit {
});
protected readonly formInputCheck = formInputCheck;
protected readonly hasFormFieldErrors = hasFormFieldErrors;
protected readonly CHAR_REGEX = /[^0-9.]/g;

constructor(
public dialogRef: MatDialogRef<CheckInFormComponent>,
Expand Down Expand Up @@ -114,12 +113,4 @@ export class CheckInFormComponent implements OnInit {
getDialogTitle(): string {
return this.checkIn.id ? 'Check-in bearbeiten' : 'Check-in erfassen';
}

private parseUnitValue(param: string | null): number {
const value: string = param || '0';
if (value.toString().at(0) == '-') {
return +('-' + value.toString().replace(this.CHAR_REGEX, ''));
}
return Number(value.toString().replace(this.CHAR_REGEX, ''));
}
}

0 comments on commit 1006126

Please sign in to comment.