Skip to content

Commit e1a3540

Browse files
committed
yeet
1 parent 9883c9b commit e1a3540

1 file changed

Lines changed: 0 additions & 81 deletions

File tree

frontend/src/ts/test/test-input.ts

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ class Input {
1515
// this.history = [];
1616
}
1717

18-
// resetHistory(): void {
19-
// this.history = [];
20-
// }
21-
2218
setKoreanStatus(val: boolean): void {
2319
this.koreanStatus = val;
2420
}
@@ -27,86 +23,9 @@ class Input {
2723
return this.koreanStatus;
2824
}
2925

30-
// pushHistory(): void {
31-
// this.history.push(this.current);
32-
// this.current = "";
33-
// }
34-
35-
// popHistory(): string {
36-
// const ret = this.history.pop() ?? "";
37-
// return ret;
38-
// }
39-
40-
// get(index: number): string | undefined {
41-
// return this.history[index];
42-
// }
43-
44-
// getHistory(): string[];
45-
// getHistory(i: number): string | undefined;
46-
// getHistory(i?: number): unknown {
47-
// if (i === undefined) {
48-
// return this.history;
49-
// } else {
50-
// return this.history[i];
51-
// }
52-
// }
53-
54-
// getHistoryLast(): string | undefined {
55-
// return lastElementFromArray(this.history);
56-
// }
57-
5826
syncWithInputElement(): void {
5927
this.current = getInputElementValue().inputValue;
6028
}
6129
}
6230

63-
// class Corrected {
64-
// current: string;
65-
// private history: string[];
66-
// constructor() {
67-
// this.current = "";
68-
// this.history = [];
69-
// }
70-
71-
// reset(): void {
72-
// this.history = [];
73-
// this.current = "";
74-
// }
75-
76-
// update(char: string, correct: boolean): void {
77-
// if (this.current === "") {
78-
// this.current += input.current;
79-
// } else {
80-
// const currCorrectedTestInputLength = this.current.length;
81-
82-
// const charIndex = input.current.length - 1;
83-
84-
// if (charIndex >= currCorrectedTestInputLength) {
85-
// this.current += char;
86-
// } else if (!correct) {
87-
// this.current =
88-
// this.current.substring(0, charIndex) +
89-
// char +
90-
// this.current.substring(charIndex + 1);
91-
// }
92-
// }
93-
// }
94-
95-
// getHistory(i: number): string | undefined {
96-
// return this.history[i];
97-
// }
98-
99-
// popHistory(): string {
100-
// const popped = this.history.pop() ?? "";
101-
// this.current = popped;
102-
// return popped;
103-
// }
104-
105-
// pushHistory(): void {
106-
// this.history.push(this.current);
107-
// this.current = "";
108-
// }
109-
// }
110-
11131
export const input = new Input();
112-
// export const corrected = new Corrected();

0 commit comments

Comments
 (0)