From 22e5b081c49555e5da6f0c0ef38910dbee69f600 Mon Sep 17 00:00:00 2001 From: John Keiser Date: Wed, 1 Jul 2020 15:04:19 -0700 Subject: [PATCH] Remove is_integer --- src/generic/stage2/numberparsing.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/generic/stage2/numberparsing.h b/src/generic/stage2/numberparsing.h index bba02ac5..c7e03b37 100644 --- a/src/generic/stage2/numberparsing.h +++ b/src/generic/stage2/numberparsing.h @@ -228,12 +228,6 @@ static bool parse_float_strtod(const char *ptr, double *outDouble) { return true; } -really_inline bool is_integer(char c) { - return (c >= '0' && c <= '9'); - // this gets compiled to (uint8_t)(c - '0') <= 9 on all decent compilers -} - - // check quickly whether the next 8 chars are made of digits // at a glance, it looks better than Mula's // http://0x80.pl/articles/swar-digits-validate.html