aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-11-04 15:22:12 +0900
committerGitHub <noreply@github.com>2017-11-04 15:22:12 +0900
commit587fc41bc366324ae11cef5e5e825995920006a5 (patch)
tree47f4adbb46bda911eb51c8f640213801e47c95f9 /activesupport
parent9ec67362054e874ed905310a79b670941fa397af (diff)
parente20b049873ed6cdc53d99fe80bb0e292e17f30f5 (diff)
downloadrails-587fc41bc366324ae11cef5e5e825995920006a5.tar.gz
rails-587fc41bc366324ae11cef5e5e825995920006a5.tar.bz2
rails-587fc41bc366324ae11cef5e5e825995920006a5.zip
Merge pull request #31050 from y-yagi/remove_unused_methods
Remove unused `calculate_rounded_number` and `digit_count`
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/number_helper/number_to_rounded_converter.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/number_helper/number_to_rounded_converter.rb b/activesupport/lib/active_support/number_helper/number_to_rounded_converter.rb
index b7ad76bb62..eb528a0583 100644
--- a/activesupport/lib/active_support/number_helper/number_to_rounded_converter.rb
+++ b/activesupport/lib/active_support/number_helper/number_to_rounded_converter.rb
@@ -37,14 +37,6 @@ module ActiveSupport
private
- def calculate_rounded_number(multiplier)
- (number / BigDecimal.new(multiplier.to_f.to_s)).round * multiplier
- end
-
- def digit_count(number)
- number.zero? ? 1 : (Math.log10(absolute_number(number)) + 1).floor
- end
-
def strip_insignificant_zeros
options[:strip_insignificant_zeros]
end