Remove unused getUpgradesDirectories function
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
import { dirname } from "path";
|
||||
import * as vscode from "vscode";
|
||||
|
||||
export { DatabaseContentsWithDbScheme } from "./local-databases/database-contents";
|
||||
export {
|
||||
DatabaseChangedEvent,
|
||||
@@ -19,15 +16,3 @@ export { DatabaseResolver } from "./local-databases/database-resolver";
|
||||
* The source of truth of the current state resides inside the
|
||||
* `DatabaseManager` class below.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get the set of directories containing upgrades, given a list of
|
||||
* scripts returned by the cli's upgrade resolution.
|
||||
*/
|
||||
export function getUpgradesDirectories(scripts: string[]): vscode.Uri[] {
|
||||
const parentDirs = scripts.map((dir) => dirname(dir));
|
||||
const uniqueParentDirs = new Set(parentDirs);
|
||||
return Array.from(uniqueParentDirs).map((filePath) =>
|
||||
vscode.Uri.file(filePath),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user