Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 79cd353

Browse files
committed
Remove more dead code
Also, fix a typo in an error message
1 parent b5ff2d6 commit 79cd353

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/decimal128.mts

+1-13
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ function handleDecimalNotation(
675675
}
676676

677677
if ("-." === withoutUnderscores) {
678-
throw new SyntaxError("Lone minus sign and period anot permitted");
678+
throw new SyntaxError("Lone minus sign and period not permitted");
679679
}
680680

681681
let isNegative = !!withoutUnderscores.match(/^-/);
@@ -895,18 +895,6 @@ const DEFAULT_TOSTRING_OPTIONS: FullySpecifiedToStringOptions = Object.freeze({
895895
normalize: true,
896896
});
897897

898-
interface CmpOptions {
899-
normalize?: boolean;
900-
}
901-
902-
interface FullySpecifiedCmpOptions {
903-
total: boolean;
904-
}
905-
906-
const DEFAULT_CMP_OPTIONS: FullySpecifiedCmpOptions = Object.freeze({
907-
total: false, // compare by numeric value (ignore trailing zeroes, treat NaN as not-a-number, for a change)
908-
});
909-
910898
function ensureFullySpecifiedConstructorOptions(
911899
options?: ConstructorOptions
912900
): FullySpecifiedConstructorOptions {

0 commit comments

Comments
 (0)