Skip to content

Commit d608c05

Browse files
committed
Remove unused getUpgradesDirectories function
1 parent 60cfc31 commit d608c05

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { dirname } from "path";
2-
import * as vscode from "vscode";
3-
41
export { DatabaseContentsWithDbScheme } from "./local-databases/database-contents";
52
export {
63
DatabaseChangedEvent,
@@ -19,15 +16,3 @@ export { DatabaseResolver } from "./local-databases/database-resolver";
1916
* The source of truth of the current state resides inside the
2017
* `DatabaseManager` class below.
2118
*/
22-
23-
/**
24-
* Get the set of directories containing upgrades, given a list of
25-
* scripts returned by the cli's upgrade resolution.
26-
*/
27-
export function getUpgradesDirectories(scripts: string[]): vscode.Uri[] {
28-
const parentDirs = scripts.map((dir) => dirname(dir));
29-
const uniqueParentDirs = new Set(parentDirs);
30-
return Array.from(uniqueParentDirs).map((filePath) =>
31-
vscode.Uri.file(filePath),
32-
);
33-
}

0 commit comments

Comments
 (0)