Skip to content

Commit 6d76d68

Browse files
authored
Remove unused function (#4769)
1 parent 88ecf35 commit 6d76d68

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

extension/src/fileSystem/workspace.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { basename } from 'path'
22
import { Uri, workspace, WorkspaceEdit } from 'vscode'
3-
import { isSameOrChild } from '.'
4-
import { definedAndNonEmpty } from '../util/array'
5-
import { getWorkspaceFolders } from '../vscode/workspaceFolders'
63

74
export const deleteTarget = (uri: Uri) => {
85
const edit = new WorkspaceEdit()
@@ -19,14 +16,6 @@ export const moveTargets = (targets: Uri[], destination: Uri) => {
1916
return workspace.applyEdit(edit)
2017
}
2118

22-
export const isInWorkspace = (pathOrGlob: string): boolean => {
23-
const isContained = getWorkspaceFolders()
24-
.map(workspaceFolder => isSameOrChild(workspaceFolder, pathOrGlob))
25-
.filter(Boolean)
26-
27-
return definedAndNonEmpty(isContained)
28-
}
29-
3019
export const findFiles = async (
3120
relativeGlob: string,
3221
exclude?: string

0 commit comments

Comments
 (0)