mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-11 03:38:15 +00:00
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:
parent
b19ab45ba8
commit
1ee2ac9733
2 changed files with 2 additions and 6 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue