summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-11-03 22:31:35 +0900
committerGitHub <[email protected]>2019-11-03 22:31:35 +0900
commit2166cc2e80ad9523f86220373b4b3f2a83eee15d (patch)
tree9601e3b88ff5a26f80ebac25a1cc2708b63c647b /src/string.c
parent5812d05b71d3d83953ddefbd1281a9aebb1334bb (diff)
parentbf0b591b2f53284fdb80aa15c82c9912fb1edb94 (diff)
downloadmruby-2166cc2e80ad9523f86220373b4b3f2a83eee15d.tar.gz
mruby-2166cc2e80ad9523f86220373b4b3f2a83eee15d.zip
Merge pull request #4803 from shuujii/remove-unused-enum-in-mrb_cstr_to_dbl
Remove unused enum in `mrb_cstr_to_dbl`
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/string.c b/src/string.c
index b7eef5888..b69a39df8 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2499,8 +2499,6 @@ mrb_cstr_to_dbl(mrb_state *mrb, const char * p, mrb_bool badcheck)
char buf[DBL_DIG * 4 + 10];
double d;
- enum {max_width = 20};
-
if (!p) return 0.0;
while (ISSPACE(*p)) p++;