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 bdaed36 commit c807446
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 45 deletions.
2 changes: 0 additions & 2 deletions src/component/context/DispatchContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ import type { PeaksActions } from '../reducer/actions/PeaksActions.js';
import type { PreferencesActions } from '../reducer/actions/PreferencesActions.js';
import type { RangesActions } from '../reducer/actions/RangesActions.js';
import type { SpectrumActions } from '../reducer/actions/SpectraActions.js';
import type { SpectraAnalysisActions } from '../reducer/actions/SpectraAnalysisAction.js';
import type { ToolsActions } from '../reducer/actions/ToolsActions.js';
import type { ZonesActions } from '../reducer/actions/ZonesActions.js';
import type { ActionType } from '../reducer/types/ActionType.js';

export type Action =
| ToolsActions
| SpectrumActions
| SpectraAnalysisActions
| LoadActions
| IntegralsActions
| RangesActions
Expand Down
4 changes: 0 additions & 4 deletions src/component/reducer/Reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import * as PeaksActions from './actions/PeaksActions.js';
import * as PreferencesActions from './actions/PreferencesActions.js';
import * as RangesActions from './actions/RangesActions.js';
import * as SpectraActions from './actions/SpectraActions.js';
import * as SpectraAnalysisActions from './actions/SpectraAnalysisAction.js';
import * as ToolsActions from './actions/ToolsActions.js';
import * as ZonesActions from './actions/ZonesActions.js';
import type { ZoomHistory } from './helper/ZoomHistoryManager.js';
Expand Down Expand Up @@ -721,9 +720,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
39 changes: 0 additions & 39 deletions src/component/reducer/actions/SpectraAnalysisAction.ts

This file was deleted.

0 comments on commit c807446

Please sign in to comment.