refactor: remove dead code (#5188)

* refactor: delete unused code

* refactor: move onLine to test helpers

* Revert "refactor: move onLine to test helpers"

This reverts commit 32cc27b213.

* fixup! refactor: delete unused code
This commit is contained in:
Joe Previte
2022-05-10 15:44:54 -07:00
committed by GitHub
parent 7a8d487729
commit b13849ded0
7 changed files with 1 additions and 149 deletions

View File

@@ -426,15 +426,6 @@ export const enumToArray = (t: any): string[] => {
return values
}
/**
* For displaying all allowed options in an enum.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const buildAllowedMessage = (t: any): string => {
const values = enumToArray(t)
return `Allowed value${values.length === 1 ? " is" : "s are"} ${values.map((t) => `'${t}'`).join(", ")}`
}
/**
* Return a promise that resolves with whether the socket path is active.
*/