From be3d7bc4d7471849239896df77b3102cbcf9c0b5 Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Tue, 6 Feb 2024 12:48:12 +0000 Subject: [PATCH] fix: remove unused function --- components/Layout/components/Banner.tsx | 2 +- lib/time.ts | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/components/Layout/components/Banner.tsx b/components/Layout/components/Banner.tsx index 81e8ed05..4864f39f 100644 --- a/components/Layout/components/Banner.tsx +++ b/components/Layout/components/Banner.tsx @@ -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"; diff --git a/lib/time.ts b/lib/time.ts index a318c275..1fd92c06 100644 --- a/lib/time.ts +++ b/lib/time.ts @@ -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; -}