Skip to content

Commit 02d6dfb

Browse files
chore: remove printMsgWithTimeout from logger
1 parent a3850dc commit 02d6dfb

File tree

4 files changed

+0
-17
lines changed

4 files changed

+0
-17
lines changed

lib/common/definitions/logger.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ interface ILogger {
1414

1515
prepare(item: any): string;
1616
printInfoMessageOnSameLine(message: string): void;
17-
printMsgWithTimeout(message: string, timeout: number): Promise<void>;
1817
printOnStderr(formatStr?: any, ...args: any[]): void;
1918
}

lib/common/logger.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,6 @@ export class Logger implements ILogger {
113113
}
114114
}
115115

116-
public printMsgWithTimeout(message: string, timeout: number): Promise<void> {
117-
return new Promise<void>((resolve, reject) => {
118-
setTimeout(() => {
119-
this.printInfoMessageOnSameLine(message);
120-
resolve();
121-
}, timeout);
122-
123-
});
124-
}
125-
126116
public printMarkdown(...args: string[]): void {
127117
const opts = {
128118
unescape: true,

lib/common/test/unit-tests/stubs.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ export class CommonLoggerStub implements ILogger {
4747
}
4848

4949
printInfoMessageOnSameLine(message: string): void { }
50-
async printMsgWithTimeout(message: string, timeout: number): Promise<void> {
51-
return null;
52-
}
5350

5451
printMarkdown(message: string): void {
5552
this.output += message;

test/stubs.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ export class LoggerStub implements ILogger {
3636
}
3737

3838
printInfoMessageOnSameLine(message: string): void { }
39-
async printMsgWithTimeout(message: string, timeout: number): Promise<void> {
40-
return null;
41-
}
4239

4340
printMarkdown(message: string): void { }
4441

0 commit comments

Comments
 (0)