aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2015-12-16 14:23:31 -0200
committerRafael França <rafaelmfranca@gmail.com>2015-12-16 14:23:31 -0200
commitd95351236071215a931c626ec2fe7059270f606c (patch)
tree547ec13feb40f177ff7b11a2cfbdd7f8d5afa48e /activesupport
parent3dd1f554ee0769227827fa397bf52a61bdae4d99 (diff)
parent2925cde881e888f01504c9f17c798dd0037b7a18 (diff)
downloadrails-d95351236071215a931c626ec2fe7059270f606c.tar.gz
rails-d95351236071215a931c626ec2fe7059270f606c.tar.bz2
rails-d95351236071215a931c626ec2fe7059270f606c.zip
Merge pull request #22605 from tonyta/delete-dead-comments
Delete dead code comments
Diffstat (limited to 'activesupport')
-rwxr-xr-xactivesupport/bin/generate_tables5
-rw-r--r--activesupport/lib/active_support/core_ext/time/calculations.rb1
2 files changed, 0 insertions, 6 deletions
diff --git a/activesupport/bin/generate_tables b/activesupport/bin/generate_tables
index 71a6b78652..2193533588 100755
--- a/activesupport/bin/generate_tables
+++ b/activesupport/bin/generate_tables
@@ -50,16 +50,11 @@ module ActiveSupport
([0-9A-F]*); # simple lowercase mapping
([0-9A-F]*)$/ix # simple titlecase mapping
codepoint.code = $1.hex
- #codepoint.name = $2
- #codepoint.category = $3
codepoint.combining_class = Integer($4)
- #codepoint.bidi_class = $5
codepoint.decomp_type = $7
codepoint.decomp_mapping = ($8=='') ? nil : $8.split.collect(&:hex)
- #codepoint.bidi_mirrored = ($13=='Y') ? true : false
codepoint.uppercase_mapping = ($16=='') ? 0 : $16.hex
codepoint.lowercase_mapping = ($17=='') ? 0 : $17.hex
- #codepoint.titlecase_mapping = ($18=='') ? nil : $18.hex
@ucd.codepoints[codepoint.code] = codepoint
end
diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb
index 675db8a36b..768c9a1b2c 100644
--- a/activesupport/lib/active_support/core_ext/time/calculations.rb
+++ b/activesupport/lib/active_support/core_ext/time/calculations.rb
@@ -162,7 +162,6 @@ class Time
# Returns a new Time representing the start of the day (0:00)
def beginning_of_day
- #(self - seconds_since_midnight).change(usec: 0)
change(:hour => 0)
end
alias :midnight :beginning_of_day