refactor: remove unused deprecated code

- remove hasMcpWebSearch(), getMcpConfigPath() from websearch-manager

- delete deprecated web-server/routes.ts (no imports)
This commit is contained in:
kaitranntt
2025-12-19 16:02:39 -05:00
parent bae323c0d3
commit 4a5b832a6e
2 changed files with 0 additions and 27 deletions
-17
View File
@@ -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');
}
-10
View File
@@ -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';