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

Commit e97fb97

Browse files
committed
Remove dead code
1 parent 4b3cb93 commit e97fb97

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Decimal.mts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { Rational } from "./Rational.mjs";
22

3-
const ratOne = new Rational(1n, 1n);
4-
const ratTen = new Rational(10n, 1n);
5-
63
function _cohort(s: string): "0" | "-0" | Rational {
74
if (s.match(/^-/)) {
85
let c = _cohort(s.substring(1));
@@ -46,7 +43,7 @@ function _quantum(s: string): number {
4643
}
4744

4845
if (s.match(/[eE]/)) {
49-
let [dec, exp] = s.split(/[eE]/);
46+
let [_, exp] = s.split(/[eE]/);
5047
return parseInt(exp);
5148
}
5249

0 commit comments

Comments
 (0)