mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
chore: 清理 src 下 113 项未使用导入和死代码
删除未使用的文件(BuiltinStatusLine.tsx、4 个重复的 .ts stub)、 移除约 55 个文件中未使用的 React 导入、 清理约 50 处未使用的导入/变量/参数。 净减少 ~296 行代码,precheck 4077 测试全部通过。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,6 @@ import { readFileSync } from 'fs';
|
||||
import mapValues from 'lodash-es/mapValues.js';
|
||||
import pickBy from 'lodash-es/pickBy.js';
|
||||
import uniqBy from 'lodash-es/uniqBy.js';
|
||||
import React from 'react';
|
||||
import { getOauthConfig } from './constants/oauth.js';
|
||||
import { getRemoteSessionUrl } from './constants/product.js';
|
||||
import { getSystemContext, getUserContext } from './context.js';
|
||||
@@ -383,7 +382,7 @@ function logManagedSettings(): void {
|
||||
}
|
||||
|
||||
// Check if running in debug/inspection mode
|
||||
function isBeingDebugged() {
|
||||
function _isBeingDebugged() {
|
||||
const isBun = isRunningWithBun();
|
||||
|
||||
// Check for inspect flags in process arguments (including all variants)
|
||||
|
||||
Reference in New Issue
Block a user