refactor: remove unused function

This commit is contained in:
Pranav C
2025-08-08 11:13:49 +00:00
parent 349f366667
commit a37f9b9d90

View File

@@ -205,52 +205,7 @@ export function useGridViewData(
return targetGroup.count
}
async function getGroupFilter(path: Array<number> = [], ignoreWhereFilter = false) {
let group = findGroupByPath(cachedGroups.value, path)
if (!group) {
try {
let currentGroups = cachedGroups.value
let parentGroup: CanvasGroup | undefined
let targetIndex: number | undefined
for (let depth = 0; depth < path.length; depth++) {
const groupIndex = path[depth]
const currentGroup = currentGroups.get(groupIndex)
if (!currentGroup) {
targetIndex = groupIndex
break
}
if (depth === path.length - 1) {
targetIndex = groupIndex
break
}
if (!currentGroup.isExpanded || !currentGroup.groups) {
return ''
}
parentGroup = currentGroup
currentGroups = currentGroup.groups
}
if (targetIndex !== undefined) {
await fetchMissingGroupChunks(targetIndex, targetIndex, parentGroup)
}
group = findGroupByPath(cachedGroups.value, path)
} catch (error) {
console.error(`Failed to load group for path ${path}:`, error)
return ''
}
}
return buildNestedWhere(group, ignoreWhereFilter ? '' : where?.value)
}
async function getGroupFilterArr(path: Array<number> = [], ignoreWhereFilter = false) {
async function getGroupFilterArr(path: Array<number> = [], _ignoreWhereFilter = false) {
let group = findGroupByPath(cachedGroups.value, path)
if (!group) {