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

ruby-changes:15092

From: nobu <ko1@a...>
Date: Thu, 18 Mar 2010 05:58:59 +0900 (JST)
Subject: [ruby-changes:15092] Ruby:r26969 (trunk): * ext/bigdecimal/bigdecimal.c (BigDecimal_{to_i,mod,divmod,div2}):

nobu	2010-03-18 05:58:34 +0900 (Thu, 18 Mar 2010)

  New Revision: 26969

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

  Log:
    * ext/bigdecimal/bigdecimal.c (BigDecimal_{to_i,mod,divmod,div2}):
      removed unused variables.

  Modified files:
    trunk/ChangeLog
    trunk/ext/bigdecimal/bigdecimal.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26968)
+++ ChangeLog	(revision 26969)
@@ -1,3 +1,8 @@
+Thu Mar 18 05:58:27 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/bigdecimal/bigdecimal.c (BigDecimal_{to_i,mod,divmod,div2}):
+	  removed unused variables.
+
 Thu Mar 18 04:40:56 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (rb_intern3): get rid of type-punning cast.
Index: ext/bigdecimal/bigdecimal.c
===================================================================
--- ext/bigdecimal/bigdecimal.c	(revision 26968)
+++ ext/bigdecimal/bigdecimal.c	(revision 26969)
@@ -483,10 +483,7 @@
 BigDecimal_to_i(VALUE self)
 {
     ENTER(5);
-    int e,n,i,nf;
-    U_LONG v,b,j;
-    volatile VALUE str;
-    char *psz,*pch;
+    int e,nf;
     Real *p;
 
     GUARD_OBJ(p,GetVpValue(self,1));
@@ -1013,7 +1010,6 @@
 BigDecimal_mod(VALUE self, VALUE r) /* %: a%b = a - (a.to_f/b).floor * b */
 {
     ENTER(3);
-    VALUE obj;
     Real *div=NULL, *mod=NULL;
 
     if(BigDecimal_DoDivmod(self,r,&div,&mod)) {
@@ -1097,7 +1093,6 @@
 BigDecimal_divmod(VALUE self, VALUE r)
 {
     ENTER(5);
-    VALUE obj;
     Real *div=NULL, *mod=NULL;
 
     if(BigDecimal_DoDivmod(self,r,&div,&mod)) {
@@ -1114,7 +1109,6 @@
     VALUE b,n;
     int na = rb_scan_args(argc,argv,"11",&b,&n);
     if(na==1) { /* div in Float sense */
-       VALUE obj;
        Real *div=NULL;
        Real *mod;
        if(BigDecimal_DoDivmod(self,b,&div,&mod)) {

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

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