From 15a7eafb892441957ba7dd6fcbf556086fe5b2b3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 26 Jul 2021 15:04:37 +0200 Subject: Refactor video links builders --- shared/core-utils/common/miscs.ts | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'shared/core-utils/common/miscs.ts') diff --git a/shared/core-utils/common/miscs.ts b/shared/core-utils/common/miscs.ts index 4780ca922..bc65dc338 100644 --- a/shared/core-utils/common/miscs.ts +++ b/shared/core-utils/common/miscs.ts @@ -20,14 +20,6 @@ function compareSemVer (a: string, b: string) { return segmentsA.length - segmentsB.length } -function isPromise (value: any) { - return value && typeof value.then === 'function' -} - -function isCatchable (value: any) { - return value && typeof value.catch === 'function' -} - function sortObjectComparator (key: string, order: 'asc' | 'desc') { return (a: any, b: any) => { if (a[key] < b[key]) { @@ -45,7 +37,5 @@ function sortObjectComparator (key: string, order: 'asc' | 'desc') { export { randomInt, compareSemVer, - isPromise, - isCatchable, sortObjectComparator } -- cgit v1.2.3