Skip to content

Commit

Permalink
refactor: remove sorting action of multiple spectra analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-musallam committed Oct 22, 2024
1 parent 1a78cca commit 1b50177
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 50 deletions.
4 changes: 0 additions & 4 deletions src/component/reducer/Reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import * as PeaksActions from './actions/PeaksActions';
import * as PreferencesActions from './actions/PreferencesActions';
import * as RangesActions from './actions/RangesActions';
import * as SpectraActions from './actions/SpectraActions';
import * as SpectraAnalysisActions from './actions/SpectraAnalysisAction';
import * as ToolsActions from './actions/ToolsActions';
import * as ZonesActions from './actions/ZonesActions';
import { ZoomHistory } from './helper/ZoomHistoryManager';
Expand Down Expand Up @@ -716,9 +715,6 @@ function innerSpectrumReducer(draft: Draft<State>, action: Action) {
action,
);

case 'ORDER_MULTIPLE_SPECTRA_ANALYSIS':
return SpectraAnalysisActions.handleOrderSpectra(draft, action);

case 'RESURRECTING_SPECTRUM':
return DatabaseActions.handleResurrectSpectrum(draft, action);
case 'TOGGLE_SIMILARITY_TREE':
Expand Down
12 changes: 5 additions & 7 deletions src/component/reducer/actions/SpectraActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ type ChangeActiveSpectrumAction = ActionType<
'CHANGE_ACTIVE_SPECTRUM',
{
modifier?:
| 'shift[false]_ctrl[true]'
| 'shift[true]_ctrl[false]'
| 'shift[true]_ctrl[true]'
| (string & {});
| 'shift[false]_ctrl[true]'
| 'shift[true]_ctrl[false]'
| 'shift[true]_ctrl[true]'
| (string & {});

id?: string; // spectrum id
}
Expand Down Expand Up @@ -166,7 +166,7 @@ export type SpectrumActions =
| ImportSpectraMetaInfoAction
| ReColorSpectraBasedOnDistinctValueAction
| SimulateSpectrumAction
| UpdateSpectrumMetaAction
| UpdateSpectrumMetaAction;

const { applyFilter } = FiltersManager;
function checkIsVisible2D(datum: Spectrum2D): boolean {
Expand Down Expand Up @@ -685,7 +685,6 @@ function handleRecolorSpectraBasedOnDistinctValue(
}
}


function handleSimulateSpectrum(
draft: Draft<State>,
simulateSpectrumOptions: SimulateSpectrumAction,
Expand Down Expand Up @@ -752,7 +751,6 @@ function handleUpdateSpectrumMeta(
draft.data[activeSpectrum.index].customInfo = meta;
}


export {
handleChangeSpectrumVisibilityById,
handleChangeSpectraVisibilityByNucleus,
Expand Down
39 changes: 0 additions & 39 deletions src/component/reducer/actions/SpectraAnalysisAction.ts

This file was deleted.

0 comments on commit 1b50177

Please sign in to comment.