Skip to content

Commit

Permalink
remove other unused helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Sep 20, 2013
1 parent 8661ce8 commit b310096
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/ruby/1.9/date.rb
Expand Up @@ -1212,20 +1212,14 @@ def ld() jd_to_ld(jd) end

once :jd, :day_fraction, :mjd, :ld

# Get the date as a Civil Date, [year, month, day_of_month]
def civil() jd_to_civil(jd, @sg) end # :nodoc:

# Get the date as an Ordinal Date, [year, day_of_year]
def ordinal() jd_to_ordinal(jd, @sg) end # :nodoc:

# Get the date as a Commercial Date, [year, week_of_year, day_of_week]
def commercial() jd_to_commercial(jd, @sg) end # :nodoc:

def weeknum0() jd_to_weeknum(jd, 0, @sg) end # :nodoc:
def weeknum1() jd_to_weeknum(jd, 1, @sg) end # :nodoc:

once :civil, :ordinal, :commercial, :weeknum0, :weeknum1
private :civil, :ordinal, :commercial, :weeknum0, :weeknum1
once :commercial, :weeknum0, :weeknum1
private :commercial, :weeknum0, :weeknum1

# Get the year of this date.
def year
Expand Down

0 comments on commit b310096

Please sign in to comment.