summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTatsuhiko Kubo <[email protected]>2014-08-29 02:22:55 +0900
committerTatsuhiko Kubo <[email protected]>2014-08-29 02:22:55 +0900
commit6b8e06a5b984ea26e64b9dfeb51c24a66638c9d5 (patch)
tree52ab38fe5392781c972e1f73c9fa1474e9c7be57
parenta3c34c165b7ac73ad5559eda39335ae4fa142056 (diff)
downloadmruby-6b8e06a5b984ea26e64b9dfeb51c24a66638c9d5.tar.gz
mruby-6b8e06a5b984ea26e64b9dfeb51c24a66638c9d5.zip
Remove unused macro.
OutOfRange() is no longer used.
-rw-r--r--src/string.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/string.c b/src/string.c
index 84e92df37..7387358fc 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2059,9 +2059,6 @@ mrb_cstr_to_dbl(mrb_state *mrb, const char * p, mrb_bool badcheck)
double d;
enum {max_width = 20};
-#define OutOfRange() (((w = end - p) > max_width) ? \
- (w = max_width, ellipsis = "...") : \
- (w = (int)(end - p), ellipsis = ""))
if (!p) return 0.0;
while (ISSPACE(*p)) p++;