From f8bb0f852c560d55ee9af400da9a786e8a94b1ea Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 12 Jul 2019 08:23:15 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20remove=20unused=20`getArg?= =?UTF-8?q?AndCb`=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/volume.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/volume.ts b/src/volume.ts index 32105d4e..84cf8308 100644 --- a/src/volume.ts +++ b/src/volume.ts @@ -488,20 +488,6 @@ export function toUnixTimestamp(time) { throw new Error('Cannot parse time: ' + time); } -/** - * Returns optional argument and callback - * @param arg Argument or callback value - * @param callback Callback or undefined - * @param def Default argument value - */ -function getArgAndCb( - arg: TArg | TCallback, - callback?: TCallback, - def?: TArg, -): [TArg, TCallback] { - return typeof arg === 'function' ? [def, arg as TCallback] : [arg, callback]; -} - function validateUid(uid: number) { if (typeof uid !== 'number') throw TypeError(ERRSTR.UID); }