Skip to content

Commit

Permalink
Cleaned up un-used code
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukthiw committed Jan 8, 2025
1 parent 0a4bd34 commit 0b0965e
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 385 deletions.
84 changes: 0 additions & 84 deletions Eplant/EplantLayout.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion Eplant/UI/Layout/ViewContainer/Topbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { queryClient } from '@eplant/main'
import { useActiveGeneId, useActiveViewId } from '@eplant/state'
import { useURLState } from '@eplant/state/URLStateProvider'
import downloadFile from '@eplant/util/downloadFile'
import { ActionsPanel } from '@eplant/util/stateUtils/ActionsPanel'
import { ActionsPanel } from '@eplant/util/Actions/ActionsPanel'
import { View } from '@eplant/View'
import {
AppBar,
Expand Down
53 changes: 0 additions & 53 deletions Eplant/UI/Layout/ViewContainer/ViewOptions.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion Eplant/UI/Layout/ViewContainer/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import GeneticElement from '@eplant/GeneticElement'
import { StateAction } from '@eplant/util/stateUtils'
import { StateAction } from '@eplant/View'

export type ViewContext = {
geneticElement: GeneticElement | null
Expand Down
1 change: 0 additions & 1 deletion Eplant/UI/LeftNav/Collections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ export function Collections(props: {
}}
deleteGene={(g) => {
deleteGene(g)
setActiveGeneId('')
}}
setOpen={() => {
setCollections((collections) => {
Expand Down
37 changes: 0 additions & 37 deletions Eplant/state/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,40 +216,3 @@ export const useActiveId = () => useAtom(activeIdAtom)
export const sidebarAtom = atom<boolean>(false)
export const useSidebarState = () => useAtom(sidebarAtom)
export const useSetSidebarState = () => useSetAtom(sidebarAtom)

// export function getPaneName(pane: Panes[string]) {
// return `${pane.activeGene ? pane.activeGene + ' - ' : ''}${pane.view}`
// }

// export const modelAtom = atomWithOptionalStorage<FlexLayout.Model>(
// 'flexlayout-model',
// FlexLayout.Model.fromJson({
// global: {
// tabSetTabStripHeight: 48,
// tabEnableRename: false,
// tabEnableClose: false,
// tabSetEnableMaximize: false,
// },
// borders: [],
// layout: {
// type: 'row',
// weight: 100,
// children: [
// {
// type: 'tabset',
// active: true,
// children: [
// {
// type: 'tab',
// id: 'default',
// },
// ],
// },
// ],
// },
// }),
// (model) => JSON.stringify(model.toJson()),
// (model) => FlexLayout.Model.fromJson(JSON.parse(model))
// )
// export const useModel = () => useAtom(modelAtom)
// export const useSetModel = () => useSetAtom(modelAtom)
File renamed without changes.
100 changes: 0 additions & 100 deletions Eplant/util/hook-menu/index.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions Eplant/util/router/index.ts

This file was deleted.

3 changes: 1 addition & 2 deletions Eplant/views/CellEFP/CellEFP.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
CellEFPViewerData,
CellEFPViewerState,
} from './types'
import CellEFP from '.'

export const CellEFPView = () => {
const { geneticElement, setIsLoading, setLoadAmount, setActiveActions } =
Expand All @@ -43,7 +42,7 @@ export const CellEFPView = () => {

useEffect(() => {
setIsLoading(isLoading)
}, [isLoading, setIsLoading])
}, [isLoading])

const efp = useMemo(() => {
const Component = CellEFPDataObject.component
Expand Down
Loading

0 comments on commit 0b0965e

Please sign in to comment.