mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
Remove dead code
Change-type: patch
This commit is contained in:
parent
d5df3de1d7
commit
bf26d4ec95
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user