Remove unused codes

This commit is contained in:
yangdx
2025-03-14 04:25:45 +08:00
parent 87366c63da
commit 063ad8a35a
2 changed files with 1 additions and 25 deletions

View File

@@ -66,7 +66,6 @@ interface GraphState {
rawGraph: RawGraph | null
sigmaGraph: DirectedGraph | null
graphLabels: string[]
allDatabaseLabels: string[]
moveToSelectedNode: boolean
@@ -89,7 +88,6 @@ interface GraphState {
setRawGraph: (rawGraph: RawGraph | null) => void
setSigmaGraph: (sigmaGraph: DirectedGraph | null) => void
setGraphLabels: (labels: string[]) => void
setAllDatabaseLabels: (labels: string[]) => void
fetchAllDatabaseLabels: () => Promise<void>
setIsFetching: (isFetching: boolean) => void
@@ -116,7 +114,6 @@ const useGraphStoreBase = create<GraphState>()((set, get) => ({
rawGraph: null,
sigmaGraph: null,
graphLabels: ['*'],
allDatabaseLabels: ['*'],
refreshLayout: () => {
@@ -161,7 +158,6 @@ const useGraphStoreBase = create<GraphState>()((set, get) => ({
focusedEdge: null,
rawGraph: null,
// Keep the existing graph instance but with cleared data
graphLabels: ['*'],
moveToSelectedNode: false,
shouldRender: false
});
@@ -177,8 +173,6 @@ const useGraphStoreBase = create<GraphState>()((set, get) => ({
set({ sigmaGraph });
},
setGraphLabels: (labels: string[]) => set({ graphLabels: labels }),
setAllDatabaseLabels: (labels: string[]) => set({ allDatabaseLabels: labels }),
fetchAllDatabaseLabels: async () => {