refactor: remove remaining dead code

This commit is contained in:
chengyongru authored and chengyongru committed 2026-08-23 19:08:00 +08:00
1 parent 3852956a71
commit 961b1fdd7d
46 files changed
+85 -250

No files matched your search

@@ -26,13 +26,13 @@ export function userPromptAnchors(messages: UIMessage[]): PromptAnchor[] {
});
}
export function promptLabel(content: string, index: number): string {
function promptLabel(content: string, index: number): string {
const text = content.replace(/\s+/g, " ").trim();
if (!text) return `Prompt ${index + 1}`;
return truncatePreview(text, 80);
}
export function promptPreview(content: string, index: number): string {
function promptPreview(content: string, index: number): string {
const text = compactPreview(content);
if (!text) return `Prompt ${index + 1}`;
return truncatePreview(text, 320);