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. */