mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 00:16:46 +00:00
refactor: remove unused deprecated code
- remove hasMcpWebSearch(), getMcpConfigPath() from websearch-manager - delete deprecated web-server/routes.ts (no imports)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
Reference in New Issue
Block a user