Remove unused getUpgradesDirectories function

This commit is contained in:
Koen Vlaswinkel
2023-05-24 17:03:14 +02:00
parent 60cfc311e5
commit d608c057a4

View File

@@ -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),
);
}