Skip to content

Commit

Permalink
remove unused getBaseModeByValue
Browse files Browse the repository at this point in the history
There are no usages of this
  • Loading branch information
JGreenlee committed Aug 19, 2024
1 parent 04830af commit a58e826
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions www/js/diary/diaryHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ export type MotionTypeKey =
| 'STOPPED_WHILE_IN_VEHICLE'
| 'AIR_OR_HSR';

export function getBaseModeByValue(value: string, labelOptions: LabelOptions) {
const modeOption = labelOptions?.MODE?.find((opt) => opt.value == value);
return base_modes.get_base_mode_by_key(modeOption?.baseMode || 'OTHER');
}

export function getBaseModeByText(text: string, labelOptions: LabelOptions) {
const modeOption = labelOptions?.MODE?.find((opt) => opt.text == text);
return base_modes.get_base_mode_by_key(modeOption?.baseMode || 'OTHER');
Expand Down

0 comments on commit a58e826

Please sign in to comment.