Skip to content

Commit 6e675c0

Browse files
committed
dead code
1 parent 0b5826b commit 6e675c0

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/codeowners-hover-provider.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import vscode from "vscode"
2-
import { dirname } from "path"
3-
import fs from "fs"
42

53
export class CodeownersHoverProvider implements vscode.HoverProvider {
64
provideHover(
@@ -14,18 +12,6 @@ export class CodeownersHoverProvider implements vscode.HoverProvider {
1412
}
1513
const idx = line.text.indexOf(m)
1614

17-
const workspaceDir = dirname(dirname(document.uri.fsPath))
18-
const myPath = workspaceDir + "/" + m
19-
20-
let isDirectory: boolean | null = null
21-
try {
22-
isDirectory = fs.statSync(myPath).isDirectory()
23-
} catch (e) {
24-
// @ts-expect-error we should see this error.
25-
if (e.code !== "ENOENT") {
26-
console.error("github-code-owners", e)
27-
}
28-
}
2915
const x = new vscode.MarkdownString()
3016
x.appendCodeblock(m)
3117

0 commit comments

Comments
 (0)