aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-20 11:47:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-20 11:47:16 +0000
commit3e7d22e5e49c1d6ff26c725015a115a2ef8b43db (patch)
tree1e169a386280770c8070e509794d6eccc85700f9
parent9699fdb1bd639182e38d718c9d5753068179a769 (diff)
downloadruby-3e7d22e5e49c1d6ff26c725015a115a2ef8b43db.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
-rw-r--r--ext/win32ole/win32ole.c5
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);