From a02f47714e7c2b460fb26829464aa23d30002bc0 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 10 May 2022 23:26:04 +0000 Subject: [PATCH] refactor: remove unused code enumToArray --- src/node/util.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/node/util.ts b/src/node/util.ts index 1bf43cd89..e33ed4585 100644 --- a/src/node/util.ts +++ b/src/node/util.ts @@ -414,18 +414,6 @@ export const open = async (address: URL | string): Promise => { }) } -/** - * For iterating over an enum's values. - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export const enumToArray = (t: any): string[] => { - const values = [] as string[] - for (const k in t) { - values.push(t[k]) - } - return values -} - /** * Return a promise that resolves with whether the socket path is active. */