ruby-changes:53947
From: k0kubun <ko1@a...>
Date: Mon, 3 Dec 2018 21:39:18 +0900 (JST)
Subject: [ruby-changes:53947] k0kubun:r66167 (trunk): ext/bigdecimal/bigdecimal.c: drop unused function
k0kubun 2018-12-03 21:39:11 +0900 (Mon, 03 Dec 2018) New Revision: 66167 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66167 Log: ext/bigdecimal/bigdecimal.c: drop unused function This has been unused since r66124. cc: @mrkn Modified files: trunk/ext/bigdecimal/bigdecimal.c Index: ext/bigdecimal/bigdecimal.c =================================================================== --- ext/bigdecimal/bigdecimal.c (revision 66166) +++ ext/bigdecimal/bigdecimal.c (revision 66167) @@ -3687,19 +3687,13 @@ VpSetRoundMode(unsigned short n) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L3687 /* * 0.0 & 1.0 generator - * These gZero_..... and gOne_..... can be any name - * referenced from nowhere except Zero() and One(). - * gZero_..... and gOne_..... must have global scope + * These gOne_..... can be any name + * referenced from nowhere except One(). + * gOne_..... must have global scope * (to let the compiler know they may be changed in outside * (... but not actually..)). */ -volatile const double gZero_ABCED9B1_CE73__00400511F31D = 0.0; -volatile const double gOne_ABCED9B4_CE73__00400511F31D = 1.0; -static double -Zero(void) -{ - return gZero_ABCED9B1_CE73__00400511F31D; -} +volatile const double gOne_ABCED9B4_CE73__00400511F31D = 1.0; static double One(void) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/