diff --git a/frontend/app/datasets/page.tsx b/frontend/app/datasets/page.tsx index e147c80..0a12f24 100644 --- a/frontend/app/datasets/page.tsx +++ b/frontend/app/datasets/page.tsx @@ -214,15 +214,6 @@ export default function DatasetsPage() { return datasets.filter((ds) => ds.name.split("/").length === 1) } - const getPoolStats = (poolName: string) => { - const poolDatasets = datasets.filter((ds) => ds.name === poolName || ds.name.startsWith(poolName + "/")) - const totalUsed = poolDatasets.reduce((sum, ds) => sum + (ds.used || 0), 0) - const totalAvail = poolDatasets[0]?.avail || 0 - const totalSize = totalUsed + totalAvail - const usagePercent = totalSize > 0 ? (totalUsed / totalSize) * 100 : 0 - - return { totalUsed, totalAvail, totalSize, usagePercent } - } const getChildDatasets = (parent: string): Dataset[] => { const prefix = parent + "/"