Remove bogus code.
This commit is contained in:
Kevin Backhouse 2021-10-15 21:55:22 +01:00
parent d874f3d278
commit 4bc4757404
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E

View File

@ -174,8 +174,8 @@ XMP_VarString * sExtendedDigest = 0;
static bool
IsLeapYear ( long year )
{
if ( year < 0 ) year = -year + 1; // Fold the negative years, assuming there is a year 0.
// This code uses the Gregorian calendar algorithm:
// https://en.wikipedia.org/wiki/Leap_year#Algorithm
if ( (year % 4) != 0 ) return false; // Not a multiple of 4.
if ( (year % 100) != 0 ) return true; // A multiple of 4 but not a multiple of 100.