From bf26d4ec9577f94a7a3a2cc754d6c549367341ee Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Thu, 14 May 2020 15:29:47 +0200 Subject: [PATCH] Remove dead code Change-type: patch --- lib/shared/units.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/shared/units.ts b/lib/shared/units.ts index 84b377f1..dcf3646c 100644 --- a/lib/shared/units.ts +++ b/lib/shared/units.ts @@ -18,7 +18,6 @@ import * as _ from 'lodash'; import * as prettyBytes from 'pretty-bytes'; const MEGABYTE_TO_BYTE_RATIO = 1000000; -const MILLISECONDS_IN_A_DAY = 86400000; export function bytesToMegabytes(bytes: number): number { return bytes / MEGABYTE_TO_BYTE_RATIO; @@ -30,7 +29,3 @@ export function bytesToClosestUnit(bytes: number): string | null { } return null; } - -export function daysToMilliseconds(days: number): number { - return days * MILLISECONDS_IN_A_DAY; -}