chore: remove unnecessary backwards compat re-export

This PR was never merged, so no need for backwards compatibility.
Import formatBytes directly from its source file.
This commit is contained in:
Hannes Rudolph 2026-01-26 14:13:50 -07:00
parent b19ab45ba8
commit 1ee2ac9733
2 changed files with 2 additions and 6 deletions

View file

@ -1,4 +1,5 @@
import { calculateTaskStorageSize, formatBytes } from "../task-storage-size"
import { calculateTaskStorageSize } from "../task-storage-size"
import { formatBytes } from "../formatBytes"
// Mock storage to avoid VS Code config access during tests
vi.mock("../storage", () => ({
@ -12,7 +13,6 @@ vi.mock("fs/promises", () => ({
readdir: (...args: unknown[]) => mockReaddir(...args),
}))
// formatBytes is still exported for backwards compatibility but not used by calculateTaskStorageSize
describe("formatBytes", () => {
it("should format 0 bytes", () => {
expect(formatBytes(0)).toBe("0 B")

View file

@ -2,7 +2,6 @@ import * as path from "path"
import * as fs from "fs/promises"
import { getStorageBasePath } from "./storage"
import { formatBytes } from "./formatBytes"
/**
* Result of counting task history items.
@ -14,9 +13,6 @@ export interface TaskStorageSizeResult {
taskCount: number
}
// Re-export for backwards compatibility with existing imports/tests.
export { formatBytes }
/**
* Counts the number of task directories in task history storage.
*