Skip to content

Commit 14c69a6

Browse files
sharpninjaCopilot
andcommitted
chore: remove unused dead fields from VoiceConversationViewModel
Remove _mcpBaseUrl and _mcpApiKey fields that were assigned but never read, eliminating CS0414 compiler warnings. These fields are vestiges of an earlier refactoring where the service was configured with URL/key directly; now the service is constructed externally and injected. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d367532 commit 14c69a6

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/McpServerManager.Core/ViewModels/VoiceConversationViewModel.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ public partial class VoiceConversationViewModel : ViewModelBase
2323

2424
private McpVoiceConversationService _voiceService;
2525
private CancellationTokenSource? _activeTurnCts;
26-
private string _mcpBaseUrl;
27-
private string? _mcpApiKey;
2826

2927
[ObservableProperty] private string _sessionId = string.Empty;
3028
[ObservableProperty] private string _language = "en-US";
@@ -65,8 +63,6 @@ public string WorkspacePath
6563
/// </summary>
6664
public VoiceConversationViewModel(McpVoiceConversationService service)
6765
{
68-
_mcpBaseUrl = "";
69-
_mcpApiKey = null;
7066
_voiceService = service ?? throw new ArgumentNullException(nameof(service));
7167
}
7268

0 commit comments

Comments
 (0)