diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-20 11:47:16 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-20 11:47:16 +0000 |
commit | 2eb1ec25d15e2b170681b16574b6974282770e76 (patch) | |
tree | 1e169a386280770c8070e509794d6eccc85700f9 /ext/win32ole | |
parent | b7733bf6c5df5504f562d2becff3cb36856cb000 (diff) | |
download | ruby-2eb1ec25d15e2b170681b16574b6974282770e76.tar.gz |
win32ole.c: remove dead code
* ext/win32ole/win32ole.c (fole_missing): remove dead code
meaningless since r51913. RSTRING_LEN does not exceed LONG_MAX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole')
-rw-r--r-- | ext/win32ole/win32ole.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c index 2a5fbfd1a8..31ed28ad44 100644 --- a/ext/win32ole/win32ole.c +++ b/ext/win32ole/win32ole.c @@ -3301,11 +3301,6 @@ fole_missing(int argc, VALUE *argv, VALUE self) rb_raise(rb_eRuntimeError, "fail: unknown method or property"); } n = RSTRING_LEN(mid); -#if SIZEOF_SIZE_T > SIZEOF_LONG - if (n >= LONG_MAX) { - rb_raise(rb_eRuntimeError, "too long method or property name"); - } -#endif if(mname[n-1] == '=') { rb_check_arity(argc, 2, 2); argv[0] = rb_enc_str_new(mname, (n-1), cWIN32OLE_enc); |