Skip to content

Commit 7666cb3

Browse files
Copilotalexr00
andcommitted
Remove unused top-level isWorktreeInWorkspace function to fix lint error
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 7848e56 commit 7666cb3

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/github/pullRequestReviewCommon.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ConvertToDraftReply, PullRequest, ReadyForReviewReply, ReviewType, Subm
1313
import { DEFAULT_DELETION_METHOD, PR_SETTINGS_NAMESPACE, SELECT_LOCAL_BRANCH, SELECT_REMOTE, SELECT_WORKTREE } from '../common/settingKeys';
1414
import { ReviewEvent, TimelineEvent } from '../common/timelineEvent';
1515
import { Schemes } from '../common/uri';
16-
import { formatError, isDescendant } from '../common/utils';
16+
import { formatError } from '../common/utils';
1717
import { IRequestMessage } from '../common/webview';
1818

1919
/**
@@ -29,14 +29,6 @@ export interface ReviewContext {
2929
getTimeline(): Promise<TimelineEvent[]>;
3030
}
3131

32-
function isWorktreeInWorkspace(worktreePath: string): boolean {
33-
const workspaceFolders = vscode.workspace.workspaceFolders;
34-
if (!workspaceFolders) {
35-
return false;
36-
}
37-
return workspaceFolders.some(folder => isDescendant(folder.uri.fsPath, worktreePath));
38-
}
39-
4032
/**
4133
* Utility functions for handling pull request reviews.
4234
* These are shared between PullRequestOverviewPanel and PullRequestViewProvider.

0 commit comments

Comments
 (0)