Skip to content

Commit

Permalink
remove recentcolors code
Browse files Browse the repository at this point in the history
  • Loading branch information
interim17 committed Oct 20, 2023
1 parent 424a624 commit 0df2ad9
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 341 deletions.
147 changes: 0 additions & 147 deletions src/components/ColorPicker/index.tsx

This file was deleted.

116 changes: 0 additions & 116 deletions src/components/ColorPicker/style.css

This file was deleted.

39 changes: 0 additions & 39 deletions src/components/ColorPickerPopover/index.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions src/components/ColorPickerPopover/style.css

This file was deleted.

8 changes: 0 additions & 8 deletions src/state/selection/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
ResetAction,
SetColorChangesAction,
ColorChangesMap,
SetRecentColorsAction,
} from "./types";

export function changeTime(time: number): ChangeTimeAction {
Expand Down Expand Up @@ -87,10 +86,3 @@ export function resetAgentSelectionsAndHighlights(): ResetAction {
type: RESET_AGENT_SELECTIONS_AND_HIGHLIGHTS,
};
}

export function setRecentColors(colors: string[]): SetRecentColorsAction {
return {
payload: colors,
type: SET_RECENT_COLORS,
};
}
15 changes: 0 additions & 15 deletions src/state/selection/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
SetVisibleAction,
ResetAction,
SetColorChangesAction,
SetRecentColorsAction,
} from "./types";

export const initialState = {
Expand All @@ -32,7 +31,6 @@ export const initialState = {
agentVisibilityMap: {},
agentHighlightMap: {},
colorChangesMap: { agents: {}, color: "" },
recentColors: [],
};

const actionToConfigMap: TypeToDescriptionMap = {
Expand Down Expand Up @@ -140,19 +138,6 @@ const actionToConfigMap: TypeToDescriptionMap = {
};
},
},
[SET_RECENT_COLORS]: {
accepts: (action: AnyAction): action is SetRecentColorsAction =>
action.type === SET_RECENT_COLORS,
perform: (
state: SelectionStateBranch,
action: SetRecentColorsAction
) => {
return {
...state,
recentColors: action.payload,
};
},
},
};

export default makeReducer<SelectionStateBranch>(
Expand Down
1 change: 0 additions & 1 deletion src/state/selection/selectors/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ export const getColorChangesMap = (state: State) =>
state.selection.colorChangesMap;
export const getNumberCollapsed = (state: State) =>
state.selection.numberPanelsCollapsed;
export const getRecentColors = (state: State) => state.selection.recentColors;
5 changes: 0 additions & 5 deletions src/state/selection/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,3 @@ export interface ColorChangesMap {
agents: VisibilitySelectionMap;
color: string;
}

export interface SetRecentColorsAction {
payload: string[];
type: string;
}

0 comments on commit 0df2ad9

Please sign in to comment.