[前][次][番号順一覧][スレッド一覧]

ruby-changes:43006

From: nobu <ko1@a...>
Date: Fri, 20 May 2016 20:47:21 +0900 (JST)
Subject: [ruby-changes:43006] nobu:r55080 (trunk): win32ole.c: remove dead code

nobu	2016-05-20 20:47:16 +0900 (Fri, 20 May 2016)

  New Revision: 55080

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55080

  Log:
    win32ole.c: remove dead code
    
    * ext/win32ole/win32ole.c (fole_missing): remove dead code
      meaningless since r51913.  RSTRING_LEN does not exceed LONG_MAX.

  Modified files:
    trunk/ext/win32ole/win32ole.c
Index: ext/win32ole/win32ole.c
===================================================================
--- ext/win32ole/win32ole.c	(revision 55079)
+++ ext/win32ole/win32ole.c	(revision 55080)
@@ -3301,11 +3301,6 @@ fole_missing(int argc, VALUE *argv, VALU https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L3301
         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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]