Remove dead code

and revert skip action being changed to sentence case 😭
This commit is contained in:
mschae23
2025-09-24 21:32:49 +02:00
parent 75caa40fe5
commit f6109ace99
2 changed files with 5 additions and 9 deletions

View File

@@ -93,13 +93,13 @@ function configToText(config: AdvancedSkipRule[]): string {
result += "\nDisabled";
break;
case CategorySkipOption.ShowOverlay:
result += "\nShow overlay";
result += "\nShow Overlay";
break;
case CategorySkipOption.ManualSkip:
result += "\nManual skip";
result += "\nManual Skip";
break;
case CategorySkipOption.AutoSkip:
result += "\nAuto skip";
result += "\nAuto Skip";
break;
default:
return null; // Invalid skip option

View File

@@ -229,7 +229,6 @@ type TokenType =
export interface SourcePos {
line: number;
// column: number;
}
export interface Span {
@@ -275,11 +274,8 @@ function nextToken(state: LexerState): Token {
state.current++;
if (c === "\n") {
state.current_pos = { line: state.current_pos.line + 1, /* column: 1 */ };
} else {
// // TODO This will be wrong on anything involving UTF-16 surrogate pairs or grapheme clusters with multiple code units
// // So just don't show column numbers on errors for now
// state.current_pos = { line: state.current_pos.line, /* column: state.current_pos.column + 1 */ };
// Cannot use state.current_pos.line++, because SourcePos is mutable and used in tokens without copying
state.current_pos = { line: state.current_pos.line + 1, };
}
return c;