diff --git a/dashboard/src/components/DiskUsageItem.vue b/dashboard/src/components/DiskUsageItem.vue index 28fa68cf2..e8a4beb02 100644 --- a/dashboard/src/components/DiskUsageItem.vue +++ b/dashboard/src/components/DiskUsageItem.vue @@ -15,15 +15,6 @@ const props = defineProps({ filesystem: Object }); -// https://stackoverflow.com/questions/6274339/how-can-i-shuffle-an-array -function shuffle(a) { - for (let i = a.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [a[i], a[j]] = [a[j], a[i]]; - } - return a; -} - function hue(numOfSteps, step) { const deg = 360/numOfSteps; return `hsl(${deg*step} 70% 50%)`; @@ -137,11 +128,13 @@ onUnmounted(() => {