Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions tensorboard/webapp/metrics/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ export const cardViewBoxChanged = createAction(
props<{cardId: CardId; userViewBox: Extent | null}>()
);

export const timeSelectionCleared = createAction(
'[Metrics] Linked Time Selection Cleared'
);

export const linkedTimeToggled = createAction(
'[Metrics] Linked Time Enable Toggle',
props<{
Expand Down
6 changes: 0 additions & 6 deletions tensorboard/webapp/metrics/store/metrics_reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1341,12 +1341,6 @@ const reducer = createReducer(
cardStateMap: nextCardStateMap,
};
}),
on(actions.timeSelectionCleared, (state) => {
return {
...state,
linkedTimeSelection: null,
};
}),
on(actions.tableEditorTabChanged, (state, {tab}) => {
return {
...state,
Expand Down
12 changes: 0 additions & 12 deletions tensorboard/webapp/metrics/store/metrics_reducers_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3967,18 +3967,6 @@ describe('metrics reducers', () => {
});
});

describe('#timeSelectionCleared', () => {
it('clears linked time selection', () => {
const beforeState = buildMetricsState({
linkedTimeSelection: {start: {step: 4}, end: {step: 4}},
});

const nextState = reducers(beforeState, actions.timeSelectionCleared());

expect(nextState.linkedTimeSelection).toBeNull();
});
});

describe('#rangeSelectionToggled', () => {
it('toggles whether stepSelectorRange is enabled or not', () => {
const state1 = buildMetricsState({
Expand Down