Skip to content

Commit d8bd921

Browse files
committed
remove unused code
1 parent 1c18894 commit d8bd921

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

src/services/ghost/strategies/StrategyHelpers.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { TextDocument, Range, Diagnostic } from "vscode"
22
import { CURSOR_MARKER } from "../ghostConstants"
3-
import { DiagnosticSeverityNames } from "./diagnostics"
43

54
export function getBaseSystemInstructions(): string {
65
return `CRITICAL OUTPUT FORMAT:
@@ -54,22 +53,6 @@ export function addCursorMarker(document: TextDocument, range?: Range): string {
5453
return `${beforeCursor}${CURSOR_MARKER}${afterCursor}`
5554
}
5655

57-
export function formatDiagnostics(diagnostics: Diagnostic[]): string {
58-
if (!diagnostics || diagnostics.length === 0) return ""
59-
60-
let result = "## Active Issues\n"
61-
62-
const sorted = [...diagnostics].sort((a, b) => a.severity - b.severity)
63-
64-
sorted.forEach((d) => {
65-
const severity = DiagnosticSeverityNames[d.severity] || "Unknown"
66-
const line = d.range.start.line + 1
67-
result += `- **${severity}** at line ${line}: ${d.message}\n`
68-
})
69-
70-
return result
71-
}
72-
7356
export function formatDocumentWithCursor(document: TextDocument, range?: Range, languageId?: string): string {
7457
const lang = languageId || document.languageId
7558
const codeWithCursor = addCursorMarker(document, range)

src/services/ghost/strategies/diagnostics.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)