Skip to content

Commit

Permalink
Remove matchEndRampColor setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jfabellera committed Sep 25, 2024
1 parent eab5071 commit d6a7fa9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
11 changes: 0 additions & 11 deletions front-end/src/seasons/fgc-2024/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
goalGreenOnlyColorAtom,
goalLedLengthAtom,
matchEndBlueNexusGoalColorAtom,
matchEndRampColorAtom,
matchEndRedNexusGoalColorAtom,
prepareFieldColorAtom,
rampBalancedColorAtom,
Expand Down Expand Up @@ -49,9 +48,6 @@ export const Settings: FC = () => {
useRecoilState(matchEndRedNexusGoalColorAtom);
const [matchEndBlueNexusGoalColor, setMatchEndBlueNexusGoalColor] =
useRecoilState(matchEndBlueNexusGoalColorAtom);
const [matchEndRampColor, setMatchEndRampColor] = useRecoilState(
matchEndRampColorAtom
);
const [redWledWebSocketAddress, setRedWledWebSocketAddress] = useRecoilState(
redWledWebSocketAddressAtom
);
Expand Down Expand Up @@ -154,13 +150,6 @@ export const Settings: FC = () => {
format='string'
inline
/>
<ColorSetting
name='Match End Ramp Color'
value={matchEndRampColor}
onChange={setMatchEndRampColor}
format='string'
inline
/>
<TextSetting
name='Red WLED WebSocket Address'
value={redWledWebSocketAddress}
Expand Down
7 changes: 0 additions & 7 deletions front-end/src/seasons/fgc-2024/stores/settings-store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ export const matchEndBlueNexusGoalColorAtom = atom<string>({
effects: [localStorageEffect('ftf.matchEndBlueNexusGoalColor')]
});

export const matchEndRampColorAtom = atom<string>({
key: 'ftf.matchEndRampColor',
default: FeedingTheFutureFCS.defaultFieldOptions.matchEndRampColor,
effects: [localStorageEffect('ftf.matchEndRampColor')]
});

export const redWledWebSocketAddressAtom = atom<string>({
key: 'ftf.redWledWebSocketAddress',
default: FeedingTheFutureFCS.defaultFieldOptions.redWledWebSocketAddress,
Expand Down Expand Up @@ -167,7 +161,6 @@ export const fieldOptionsSelector: RecoilValueReadOnly<FeedingTheFutureFCS.Field
fieldFaultColor: get(fieldFaultColorAtom),
matchEndRedNexusGoalColor: get(matchEndRedNexusGoalColorAtom),
matchEndBlueNexusGoalColor: get(matchEndBlueNexusGoalColorAtom),
matchEndRampColor: get(matchEndRampColorAtom),
redWledWebSocketAddress: get(redWledWebSocketAddressAtom),
blueWledWebSocketAddress: get(blueWledWebSocketAddressAtom),
centerWledWebSocketAddress: get(centerWledWebSocketAddressAtom),
Expand Down
2 changes: 0 additions & 2 deletions lib/models/src/fcs/FeedingTheFutureFCS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,6 @@ export interface FieldOptions {
fieldFaultColor: string;
matchEndRedNexusGoalColor: string;
matchEndBlueNexusGoalColor: string;
matchEndRampColor: string;
redWledWebSocketAddress: string;
blueWledWebSocketAddress: string;
centerWledWebSocketAddress: string;
Expand Down Expand Up @@ -781,7 +780,6 @@ export const defaultFieldOptions: FieldOptions = {
fieldFaultColor: 'ff0000',
matchEndRedNexusGoalColor: 'ff0000',
matchEndBlueNexusGoalColor: '0000ff',
matchEndRampColor: 'ff00ff',
redWledWebSocketAddress: '',
blueWledWebSocketAddress: '',
centerWledWebSocketAddress: '',
Expand Down

0 comments on commit d6a7fa9

Please sign in to comment.