chore: remove unused code

- Remove unused setAccessCodeRequired state in chat-panel.tsx
- Remove unused getSelectedModel export in model-config.ts
This commit is contained in:
dayuan.jiang
2025-12-22 20:46:12 +09:00
parent 7ed7b29274
commit 7cf6d7e7bd
2 changed files with 2 additions and 13 deletions

View File

@@ -275,11 +275,3 @@ export function findModelById(
): FlattenedModel | undefined {
return flattenModels(config).find((m) => m.id === modelId)
}
// Get selected model
export function getSelectedModel(
config: MultiModelConfig,
): FlattenedModel | undefined {
if (!config.selectedModelId) return undefined
return findModelById(config, config.selectedModelId)
}