diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-09-19 10:23:29 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-09-19 23:40:49 +0900 |
commit | 12889fad4100569c212c9813243db5ec5380b5fb (patch) | |
tree | 3164418a74b54f5cdb2a170ed34f17d3128b529a /ext/bigdecimal/missing.h | |
parent | a44f48cadc8a319e233bc5a8c6ab9d52aaf52bae (diff) | |
download | ruby-12889fad4100569c212c9813243db5ec5380b5fb.tar.gz |
[ruby/bigdecimal] Remove symbol defs in missing.h for old Rubies
Commit 2885514 added these to support Ruby 2.1. The rb_sym2str function
is defined since Ruby 2.2.
https://github.com/ruby/bigdecimal/commit/be366c9cf2
Diffstat (limited to 'ext/bigdecimal/missing.h')
-rw-r--r-- | ext/bigdecimal/missing.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ext/bigdecimal/missing.h b/ext/bigdecimal/missing.h index 02d2348e4b..307147c0fd 100644 --- a/ext/bigdecimal/missing.h +++ b/ext/bigdecimal/missing.h @@ -172,16 +172,6 @@ rb_complex_imag(VALUE cmp) } #endif -/* symbol */ - -#ifndef HAVE_RB_SYM2STR -static inline VALUE -rb_sym2str(VALUE sym) -{ - return rb_id2str(SYM2ID(sym)); -} -#endif - /* st */ #ifndef ST2FIX |