summaryrefslogtreecommitdiffhomepage
path: root/js/src/tool/util
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-05-30 20:47:56 -0400
committerDax Raad <[email protected]>2025-05-30 20:48:36 -0400
commitf3da73553c45f17e04b1e77cb13eb0fca714d1bd (patch)
treea24317a19e1ab2a89da50db669dc6894f15d00d1 /js/src/tool/util
parent9a26b3058ffc1023e5c7e54b6d571c903d15888e (diff)
downloadopencode-f3da73553c45f17e04b1e77cb13eb0fca714d1bd.tar.gz
opencode-f3da73553c45f17e04b1e77cb13eb0fca714d1bd.zip
sync
Diffstat (limited to 'js/src/tool/util')
-rw-r--r--js/src/tool/util/file-times.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/js/src/tool/util/file-times.ts b/js/src/tool/util/file-times.ts
deleted file mode 100644
index 8d36d007d..000000000
--- a/js/src/tool/util/file-times.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { App } from "../../app/app";
-
-export namespace FileTimes {
- export const state = App.state("tool.filetimes", () => ({
- read: new Map<string, Date>(),
- write: new Map<string, Date>(),
- }));
-
- export function read(filePath: string) {
- state().read.set(filePath, new Date());
- }
-
- export function write(filePath: string) {
- state().write.set(filePath, new Date());
- }
-
- export function get(filePath: string): Date | null {
- return state().read.get(filePath) || null;
- }
-}