From fa8ba4f04623f66962c9fa2a502dd8d51a3eefa6 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 10 Dec 2017 02:10:35 +1100 Subject: src/: Comment out unused constants/functions --- src/lstrlib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lstrlib.js') diff --git a/src/lstrlib.js b/src/lstrlib.js index 88518e7..cfd1c28 100644 --- a/src/lstrlib.js +++ b/src/lstrlib.js @@ -148,7 +148,7 @@ const lua_number2strx = function(L, fmt, x) { ** is maximum exponent + 1). (99+3+1 then rounded to 120 for "extra ** expenses", such as locale-dependent stuff) */ -const MAX_ITEM = 120;// TODO: + l_mathlim(MAX_10_EXP); +// const MAX_ITEM = 120;// TODO: + l_mathlim(MAX_10_EXP); /* valid flags in a format specification */ @@ -157,7 +157,7 @@ const FLAGS = ["-".charCodeAt(0), "+".charCodeAt(0), " ".charCodeAt(0), "#" /* ** maximum size of each format specification (such as "%-099.99d") */ -const MAX_FORMAT = 32; +// const MAX_FORMAT = 32; // TODO: locale ? and do it better const isalpha = e => ('a'.charCodeAt(0) <= e && e <= 'z'.charCodeAt(0)) || (e >= 'A'.charCodeAt(0) && e <= 'Z'.charCodeAt(0)); -- cgit v1.2.3-54-g00ecf