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

ruby-changes:39126

From: nobu <ko1@a...>
Date: Fri, 10 Jul 2015 10:46:12 +0900 (JST)
Subject: [ruby-changes:39126] nobu:r51207 (trunk): stringio.c: remove unnecessary check

nobu	2015-07-10 10:46:04 +0900 (Fri, 10 Jul 2015)

  New Revision: 51207

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

  Log:
    stringio.c: remove unnecessary check
    
    * ext/stringio/stringio.c (writable): remove unnecessary check for
      deprecated safe level 4.  [Fix GH-963]

  Modified files:
    trunk/ChangeLog
    trunk/ext/stringio/stringio.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51206)
+++ ChangeLog	(revision 51207)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jul 10 10:46:02 2015  ksss  <co000ri@g...>
+
+	* ext/stringio/stringio.c (writable): remove unnecessary check for
+	  deprecated safe level 4.  [Fix GH-963]
+
 Thu Jul  9 15:07:12 2015  NAKAMURA Usaku  <usa@r...>
 
 	* win32/win32.c (waitpid): return immediately if interrupted.
Index: ext/stringio/stringio.c
===================================================================
--- ext/stringio/stringio.c	(revision 51206)
+++ ext/stringio/stringio.c	(revision 51207)
@@ -139,8 +139,6 @@ writable(VALUE strio) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L139
     if (!WRITABLE(strio)) {
 	rb_raise(rb_eIOError, "not opened for writing");
     }
-    if (!OBJ_TAINTED(ptr->string)) {
-    }
     return ptr;
 }
 

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

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