Skip to content

Commit 9a57b5e

Browse files
AntikodeAntikode
authored andcommitted
Remove dead formatSize function from reorder.js
1 parent 69ad675 commit 9a57b5e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

reorder.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ if ("PerformanceObserver" in window) {
3737
}
3838
}
3939

40-
function formatSize(bytes) {
41-
if (bytes < 1024) return `${bytes} B`;
42-
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(0)} KB`;
43-
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
44-
}
45-
4640
function escapeHtml(str) {
4741
const div = document.createElement("div");
4842
div.textContent = str;

0 commit comments

Comments
 (0)