From 4023778c64404d97115ac2643fcf3106f5b63527 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Thu, 30 Jan 2025 15:30:47 +0900 Subject: [PATCH] Code Quality: Delete unused function from PHP Sync Issue generation script (#68947) Co-authored-by: t-hamano Co-authored-by: Mamaduka --- bin/generate-php-sync-issue.mjs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bin/generate-php-sync-issue.mjs b/bin/generate-php-sync-issue.mjs index bd627aeb65107c..9ea79c4f165e92 100644 --- a/bin/generate-php-sync-issue.mjs +++ b/bin/generate-php-sync-issue.mjs @@ -156,17 +156,6 @@ async function main() { fs.writeFileSync( nodePath.join( __dirname, 'issueContent.md' ), content ); } -/** - * Checks if the first date is after the second date. - * - * @param {string} date1 - The first date. - * @param {string} date2 - The second date. - * @return {boolean} - Returns true if the first date is after the second date, false otherwise. - */ -function isAfter( date1, date2 ) { - return new Date( date1 ) > new Date( date2 ); -} - function validateDate( sinceArg ) { const sinceDate = new Date( sinceArg ); const maxPreviousDate = new Date();