Skip to content

Commit

Permalink
fix: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
ruilopesm committed Feb 6, 2024
1 parent eae5a1b commit be3d7bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion components/Layout/components/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ISpotlight, useNotify } from "@context/Notification";
import { compareDates, displayRemainingTime } from "@lib/time";
import { displayRemainingTime } from "@lib/time";
import { motion as Motion } from "framer-motion";
import Link from "next/link";
import { useEffect, useState } from "react";
Expand Down
6 changes: 0 additions & 6 deletions lib/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,3 @@ export function displayRemainingTime(end: string) {

return `${formattedMinutes}:${formattedSeconds}`;
}

export function compareDates(a: Date, b: Date) {
if (a > b) return 1;
if (a < b) return -1;
return 0;
}

0 comments on commit be3d7bc

Please sign in to comment.