Skip to content

Commit 55e77ca

Browse files
committed
remove commented code
1 parent 4049511 commit 55e77ca

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/utils/emitter.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ export function createValueEmitter<T>(): ValueEmitter<T> {
3333
onChange(callback) {
3434
callbacks.push(callback);
3535
void Promise.resolve(callback(currentValue)).catch(() => {});
36-
// if (currentValue !== undefined) {
37-
// void Promise.resolve(callback(currentValue)).catch(() => {});
38-
// }
3936
},
4037
};
4138
}

src/utils/file-status-tracker.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,11 @@ export function createFileStatusTracker(
2828
files: string[],
2929
check: () => Promise<SetupStatus | undefined> | SetupStatus | undefined,
3030
): StatusTracker {
31-
// let status: SetupStatus | undefined;
32-
// const emitter = createEmitter<SetupStatus | undefined>(outputChannel);
3331
const status = createValueEmitter<SetupStatus | undefined>();
3432

3533
const updateStatus = createOnceImmediate(async () => {
3634
const newStatus = await Promise.resolve(check());
3735
status.setValue(newStatus);
38-
// if (status !== newStatus) {
39-
// status = newStatus;
40-
// outputChannel.trace(
41-
// `${outputChannelPrefix} File status changed to ${status}`,
42-
// );
43-
// await emitter.emit(status);
44-
// }
4536
});
4637

4738
const watcher = watch(files)
@@ -71,10 +62,6 @@ export function createFileStatusTracker(
7162
},
7263
onChange(callback) {
7364
status.onChange(callback);
74-
// emitter.on(callback);
75-
// if (status) {
76-
// callback(status);
77-
// }
7865
},
7966
async dispose() {
8067
await watcher.close();

0 commit comments

Comments
 (0)