Skip to content

Commit

Permalink
Code Quality: Delete unused function from PHP Sync Issue generation s…
Browse files Browse the repository at this point in the history
…cript (WordPress#68947)

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • Loading branch information
3 people authored Jan 30, 2025
1 parent 80348e7 commit 87b37b5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions bin/generate-php-sync-issue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 87b37b5

Please sign in to comment.