From 4a5b832a6ed5990d4621e79f17f5f81e8a0c87d1 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Fri, 19 Dec 2025 16:02:39 -0500 Subject: [PATCH] refactor: remove unused deprecated code - remove hasMcpWebSearch(), getMcpConfigPath() from websearch-manager - delete deprecated web-server/routes.ts (no imports) --- src/utils/websearch-manager.ts | 17 ----------------- src/web-server/routes.ts | 10 ---------- 2 files changed, 27 deletions(-) delete mode 100644 src/web-server/routes.ts diff --git a/src/utils/websearch-manager.ts b/src/utils/websearch-manager.ts index fe7f8eb7..ad1f0777 100644 --- a/src/utils/websearch-manager.ts +++ b/src/utils/websearch-manager.ts @@ -13,9 +13,6 @@ * @module utils/websearch-manager */ -import * as path from 'path'; -import * as os from 'os'; - // Re-export types export type { GeminiCliStatus, @@ -83,17 +80,3 @@ export function clearAllCliCaches(): void { export function ensureMcpWebSearch(): boolean { return false; } - -/** - * @deprecated MCP is no longer used - */ -export function hasMcpWebSearch(): boolean { - return false; -} - -/** - * @deprecated MCP is no longer used - */ -export function getMcpConfigPath(): string { - return path.join(os.homedir(), '.claude', '.mcp.json'); -} diff --git a/src/web-server/routes.ts b/src/web-server/routes.ts deleted file mode 100644 index 4caeb3d2..00000000 --- a/src/web-server/routes.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * REST API Routes - Re-export from modular routes - * - * This file exists for backward compatibility. - * All routes have been modularized into src/web-server/routes/ directory. - * - * @deprecated Import from './routes/index' instead - */ - -export { apiRoutes } from './routes/index';