summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-21 15:11:44 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-21 15:11:44 +0000
commit5c3f4c5b1f3f8e94b311f4afec82effc0a6059c9 (patch)
tree8e19c78d9671ea59f58c8fa42c31d4dd857cb6f1 /time.c
parent7e127d0212acd13749f146c798bc708b165d8665 (diff)
downloadruby-5c3f4c5b1f3f8e94b311f4afec82effc0a6059c9.tar.gz
ruby-5c3f4c5b1f3f8e94b311f4afec82effc0a6059c9.tar.xz
ruby-5c3f4c5b1f3f8e94b311f4afec82effc0a6059c9.zip
* time.c (leap_year_v_p): removed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/time.c b/time.c
index 6fe3097f2..973097ef5 100644
--- a/time.c
+++ b/time.c
@@ -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)
{