Remove unused function

master
Brad Cornes 2023-09-28 09:03:05 +01:00
parent d49a90b4e7
commit d5dbede4f8
1 changed files with 0 additions and 15 deletions

View File

@ -133,21 +133,6 @@ process.on('unhandledRejection', (e: any) => {
connection.console.error(formatError(`Unhandled exception`, e)) connection.console.error(formatError(`Unhandled exception`, e))
}) })
function deletePropertyPath(obj: any, path: string | string[]): void {
if (typeof path === 'string') {
path = path.split('.')
}
for (let i = 0; i < path.length - 1; i++) {
obj = obj[path[i]]
if (typeof obj === 'undefined') {
return
}
}
delete obj[path.pop()]
}
function getConfigId(configPath: string, configDependencies: string[]): string { function getConfigId(configPath: string, configDependencies: string[]): string {
return JSON.stringify( return JSON.stringify(
[configPath, ...configDependencies].map((file) => [file, fs.statSync(file).mtimeMs]) [configPath, ...configDependencies].map((file) => [file, fs.statSync(file).mtimeMs])