Skip to content

Commit e5577f2

Browse files
committed
Remove unused function
1 parent a9ca801 commit e5577f2

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

backend/frontend/src/utils.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@ export function timingDisplay(timing: number): string {
88
return `${Math.round(timing * 1000) / 1000}s`;
99
}
1010

11-
export function classForDiff(diff: number): string {
12-
if (diff === 0.0) return 'error-0';
13-
else if (diff < 0.001) return 'error-1';
14-
else if (diff < 0.01) return 'error-2';
15-
else if (diff < 0.05) return 'error-3';
16-
else if (diff < 0.1) return 'error-4';
17-
else if (diff < 0.25) return 'error-5';
18-
else if (diff < 0.5) return 'error-6';
19-
else if (diff < 0.75) return 'error-7';
20-
else if (diff < 1.0) return 'error-8';
21-
else return 'error-9';
22-
}
23-
2411
export function diffStyle(diff: number): { backgroundColor: string; color: string } {
2512
if (diff === 0.0) return { backgroundColor: '#eeeeee', color: '#111111' };
2613
else if (diff < 0.001) return { backgroundColor: '#4ce600', color: '#111111' };

0 commit comments

Comments
 (0)