X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fcore-utils%2Fcommon%2Fmiscs.ts;h=bc65dc33863ebcf111d18e05b3a0f47287ce9473;hb=15a7eafb892441957ba7dd6fcbf556086fe5b2b3;hp=4780ca922d9d615843493b89a780092f2976a650;hpb=9162fdd36300d2478f13d6ad346ec2c323f40faa;p=github%2FChocobozzz%2FPeerTube.git 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 }