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

ruby-changes:50560

From: nobu <ko1@a...>
Date: Fri, 9 Mar 2018 12:51:10 +0900 (JST)
Subject: [ruby-changes:50560] nobu:r62703 (trunk): Removed useless assertions [ci skip]

nobu	2018-03-09 12:51:04 +0900 (Fri, 09 Mar 2018)

  New Revision: 62703

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

  Log:
    Removed useless assertions [ci skip]

  Modified files:
    trunk/complex.c
    trunk/ext/date/date_core.c
    trunk/rational.c
Index: complex.c
===================================================================
--- complex.c	(revision 62702)
+++ complex.c	(revision 62703)
@@ -2073,8 +2073,6 @@ Init_Complex(void) https://github.com/ruby/ruby/blob/trunk/complex.c#L2073
 #undef rb_intern
 #define rb_intern(str) rb_intern_const(str)
 
-    assert(fprintf(stderr, "assert() is now active\n"));
-
     id_abs = rb_intern("abs");
     id_arg = rb_intern("arg");
     id_denominator = rb_intern("denominator");
Index: ext/date/date_core.c
===================================================================
--- ext/date/date_core.c	(revision 62702)
+++ ext/date/date_core.c	(revision 62703)
@@ -9017,8 +9017,6 @@ Init_date_core(void) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L9017
 #undef rb_intern
 #define rb_intern(str) rb_intern_const(str)
 
-    assert(fprintf(stderr, "assert() is now active\n"));
-
     id_cmp = rb_intern("<=>");
     id_le_p = rb_intern("<=");
     id_ge_p = rb_intern(">=");
Index: rational.c
===================================================================
--- rational.c	(revision 62702)
+++ rational.c	(revision 62703)
@@ -2594,8 +2594,6 @@ Init_Rational(void) https://github.com/ruby/ruby/blob/trunk/rational.c#L2594
 #undef rb_intern
 #define rb_intern(str) rb_intern_const(str)
 
-    assert(fprintf(stderr, "assert() is now active\n"));
-
     id_abs = rb_intern("abs");
     id_idiv = rb_intern("div");
     id_integer_p = rb_intern("integer?");

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

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