diff options
Diffstat (limited to 'shared/core-utils/common/miscs.ts')
-rw-r--r-- | shared/core-utils/common/miscs.ts | 10 |
1 files changed, 0 insertions, 10 deletions
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) { | |||
20 | return segmentsA.length - segmentsB.length | 20 | return segmentsA.length - segmentsB.length |
21 | } | 21 | } |
22 | 22 | ||
23 | function isPromise (value: any) { | ||
24 | return value && typeof value.then === 'function' | ||
25 | } | ||
26 | |||
27 | function isCatchable (value: any) { | ||
28 | return value && typeof value.catch === 'function' | ||
29 | } | ||
30 | |||
31 | function sortObjectComparator (key: string, order: 'asc' | 'desc') { | 23 | function sortObjectComparator (key: string, order: 'asc' | 'desc') { |
32 | return (a: any, b: any) => { | 24 | return (a: any, b: any) => { |
33 | if (a[key] < b[key]) { | 25 | if (a[key] < b[key]) { |
@@ -45,7 +37,5 @@ function sortObjectComparator (key: string, order: 'asc' | 'desc') { | |||
45 | export { | 37 | export { |
46 | randomInt, | 38 | randomInt, |
47 | compareSemVer, | 39 | compareSemVer, |
48 | isPromise, | ||
49 | isCatchable, | ||
50 | sortObjectComparator | 40 | sortObjectComparator |
51 | } | 41 | } |