浏览代码

fix: remove unused truncate function and extra blank lines

Michael Henke 1 月之前
父节点
当前提交
96c8de3cc1
共有 2 个文件被更改,包括 0 次插入6 次删除
  1. 0 2
      src/tui.test.ts
  2. 0 4
      src/tui.ts

+ 0 - 2
src/tui.test.ts

@@ -121,8 +121,6 @@ describe('readConfigInvalid', () => {
   });
   });
 });
 });
 
 
-
-
 describe('tui plugin env disable', () => {
 describe('tui plugin env disable', () => {
   let originalEnv: typeof process.env;
   let originalEnv: typeof process.env;
 
 

+ 0 - 4
src/tui.ts

@@ -91,10 +91,6 @@ export function getSidebarAgentNames(snapshot: TuiSnapshot): string[] {
     : FALLBACK_SIDEBAR_AGENTS;
     : FALLBACK_SIDEBAR_AGENTS;
 }
 }
 
 
-function truncate(str: string, maxLen: number): string {
-  return str.length > maxLen ? `${str.slice(0, maxLen - 1)}…` : str;
-}
-
 function agentRow(
 function agentRow(
   label: string,
   label: string,
   model: string,
   model: string,