From 1fe536e113dfccc85f83f8a33211ab7e17b9fced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kondratek?= Date: Wed, 27 Nov 2024 21:47:20 +0100 Subject: [PATCH] Remove redundant `serverSentModels` --- src/main/kotlin/com/sourcegraph/cody/chat/ui/LlmDropdown.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/kotlin/com/sourcegraph/cody/chat/ui/LlmDropdown.kt b/src/main/kotlin/com/sourcegraph/cody/chat/ui/LlmDropdown.kt index 71cbfec681..a2667a6ebf 100644 --- a/src/main/kotlin/com/sourcegraph/cody/chat/ui/LlmDropdown.kt +++ b/src/main/kotlin/com/sourcegraph/cody/chat/ui/LlmDropdown.kt @@ -1,7 +1,6 @@ package com.sourcegraph.cody.chat.ui import com.intellij.openapi.application.invokeLater -import com.intellij.openapi.components.service import com.intellij.openapi.project.Project import com.intellij.openapi.ui.ComboBox import com.intellij.ui.MutableCollectionComboBoxModel @@ -29,7 +28,6 @@ class LlmDropdown( val parentDialog: EditCommandPrompt?, private val model: String? = null ) : ComboBox(MutableCollectionComboBoxModel()) { - private var hasServerSentModels = project.service().get().serverSentModels init { renderer = LlmComboBoxRenderer(this) @@ -57,7 +55,6 @@ class LlmDropdown( } private fun handleConfigUpdate(config: ConfigFeatures) { - hasServerSentModels = config.serverSentModels if (!isVisible && config.serverSentModels) { isVisible = true revalidate()