Skip to content

Commit d5dbede

Browse files
committed
Remove unused function
1 parent d49a90b commit d5dbede

File tree

1 file changed

+0
-15
lines changed
  • packages/tailwindcss-language-server/src

1 file changed

+0
-15
lines changed

packages/tailwindcss-language-server/src/server.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -133,21 +133,6 @@ process.on('unhandledRejection', (e: any) => {
133133
connection.console.error(formatError(`Unhandled exception`, e))
134134
})
135135

136-
function deletePropertyPath(obj: any, path: string | string[]): void {
137-
if (typeof path === 'string') {
138-
path = path.split('.')
139-
}
140-
141-
for (let i = 0; i < path.length - 1; i++) {
142-
obj = obj[path[i]]
143-
if (typeof obj === 'undefined') {
144-
return
145-
}
146-
}
147-
148-
delete obj[path.pop()]
149-
}
150-
151136
function getConfigId(configPath: string, configDependencies: string[]): string {
152137
return JSON.stringify(
153138
[configPath, ...configDependencies].map((file) => [file, fs.statSync(file).mtimeMs])

0 commit comments

Comments
 (0)