Remove unused functions getNextTextSortOrder and getNextFolderSortOrder in src/App.tsx

This commit is contained in:
2026-02-01 01:50:36 +01:00
parent 45d7cd940d
commit bdb67d4093

View File

@@ -386,28 +386,6 @@ export default function App() {
}
}, []);
const getNextTextSortOrder = useCallback(
(folderId: string | null) => {
if (hasSearch) return null;
const list = textsByFolder.get(folderId ?? null) ?? [];
const hasManualOrder = list.some((text) => text.sort_order !== null);
if (!hasManualOrder) return null;
return list.length;
},
[hasSearch, textsByFolder]
);
const getNextFolderSortOrder = useCallback(
(parentId: string | null) => {
if (hasSearch) return null;
const list = foldersByParent.get(parentId ?? null) ?? [];
const hasManualOrder = list.some((folder) => folder.sort_order !== null);
if (!hasManualOrder) return null;
return list.length;
},
[foldersByParent, hasSearch]
);
const isFolderExpanded = useCallback(
(folderId: string) => {
if (hasSearch) {