summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-08-29 11:56:05 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-08-29 11:56:05 +0900
commit56384139a842f5ffd0ed9609d81fde53050549da (patch)
tree52ab38fe5392781c972e1f73c9fa1474e9c7be57
parenta3c34c165b7ac73ad5559eda39335ae4fa142056 (diff)
parent6b8e06a5b984ea26e64b9dfeb51c24a66638c9d5 (diff)
downloadmruby-56384139a842f5ffd0ed9609d81fde53050549da.tar.gz
mruby-56384139a842f5ffd0ed9609d81fde53050549da.zip
Merge pull request #2573 from cubicdaiya/issues/remove_unused_macro
Remove unused macro.
-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++;