Skip to content

Commit d2c4196

Browse files
authored
Remove ENABLE_NUMERIC_STRING flag (#479)
1 parent 6d01c36 commit d2c4196

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

ext/bigdecimal/bigdecimal.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333

3434
#define BIGDECIMAL_VERSION "4.0.1"
3535

36-
/* #define ENABLE_NUMERIC_STRING */
37-
3836
#define SIGNED_VALUE_MAX INTPTR_MAX
3937
#define SIGNED_VALUE_MIN INTPTR_MIN
4038
#define MUL_OVERFLOW_SIGNED_VALUE_P(a, b) MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, SIGNED_VALUE_MIN, SIGNED_VALUE_MAX)
@@ -336,14 +334,6 @@ GetBDValueWithPrecInternal(VALUE v, size_t prec, int must)
336334
break;
337335
}
338336

339-
#ifdef ENABLE_NUMERIC_STRING
340-
case T_STRING: {
341-
const char *c_str = StringValueCStr(v);
342-
v = rb_cstr_convert_to_BigDecimal(c_str, must);
343-
break;
344-
}
345-
#endif /* ENABLE_NUMERIC_STRING */
346-
347337
default:
348338
goto SomeOneMayDoIt;
349339
}

0 commit comments

Comments
 (0)