diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-21 15:11:44 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-21 15:11:44 +0000 |
commit | 1dd6a6dfa47ac463b88113afe7be37b5d1147e1a (patch) | |
tree | 8e19c78d9671ea59f58c8fa42c31d4dd857cb6f1 | |
parent | 3bc16f62c1fb6225b3f6cb96b62f78e44636aae4 (diff) | |
download | ruby-1dd6a6dfa47ac463b88113afe7be37b5d1147e1a.tar.gz |
* time.c (leap_year_v_p): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | time.c | 7 |
2 files changed, 4 insertions, 7 deletions
@@ -1,3 +1,7 @@ +Wed Apr 22 00:11:19 2009 Tanaka Akira <akr@fsij.org> + + * time.c (leap_year_v_p): removed. + Tue Apr 21 23:52:45 2009 Tanaka Akira <akr@fsij.org> * time.c: remove time_t restriction from Time class. @@ -224,13 +224,6 @@ static const int leap_year_days_in_month[] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; -static int -leap_year_v_p(VALUE year) -{ - int y = NUM2INT(mod(year, INT2FIX(400))); - return ((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0); -} - static VALUE timegmv_noleapsecond(struct vtm *vtm) { |