@@ -400,37 +400,6 @@ BigDecimal_double_fig(VALUE self)
400400 return INT2FIX (BIGDECIMAL_DOUBLE_FIGURES );
401401}
402402
403- /* call-seq:
404- * precs -> array
405- *
406- * Returns an Array of two Integer values that represent platform-dependent
407- * internal storage properties.
408- *
409- * This method is deprecated and will be removed in the future.
410- * Instead, use BigDecimal#n_significant_digits for obtaining the number of
411- * significant digits in scientific notation, and BigDecimal#precision for
412- * obtaining the number of digits in decimal notation.
413- *
414- */
415-
416- static VALUE
417- BigDecimal_prec (VALUE self )
418- {
419- BDVALUE v ;
420- VALUE obj ;
421-
422- rb_category_warn (RB_WARN_CATEGORY_DEPRECATED ,
423- "BigDecimal#precs is deprecated and will be removed in the future; "
424- "use BigDecimal#precision instead." );
425-
426- v = GetBDValueMust (self );
427- obj = rb_assoc_new (SIZET2NUM (v .real -> Prec * VpBaseFig ()),
428- SIZET2NUM (v .real -> MaxPrec * VpBaseFig ()));
429-
430- RB_GC_GUARD (v .bigdecimal );
431- return obj ;
432- }
433-
434403static void
435404VpCountPrecisionAndScale (Real * p , ssize_t * out_precision , ssize_t * out_scale )
436405{
@@ -3593,7 +3562,6 @@ Init_bigdecimal(void)
35933562 rb_define_const (rb_cBigDecimal , "NAN" , BIGDECIMAL_LITERAL (NAN , NaN ));
35943563
35953564 /* instance methods */
3596- rb_define_method (rb_cBigDecimal , "precs" , BigDecimal_prec , 0 );
35973565 rb_define_method (rb_cBigDecimal , "precision" , BigDecimal_precision , 0 );
35983566 rb_define_method (rb_cBigDecimal , "scale" , BigDecimal_scale , 0 );
35993567 rb_define_method (rb_cBigDecimal , "precision_scale" , BigDecimal_precision_scale , 0 );
0 commit comments