Skip to content

Commit

Permalink
Remove redundant serverSentModels
Browse files Browse the repository at this point in the history
  • Loading branch information
mkondratek committed Nov 27, 2024
1 parent f766d1a commit 1fe536e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/kotlin/com/sourcegraph/cody/chat/ui/LlmDropdown.kt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -29,7 +28,6 @@ class LlmDropdown(
val parentDialog: EditCommandPrompt?,
private val model: String? = null
) : ComboBox<ModelAvailabilityStatus>(MutableCollectionComboBoxModel()) {
private var hasServerSentModels = project.service<CurrentConfigFeatures>().get().serverSentModels

init {
renderer = LlmComboBoxRenderer(this)
Expand Down Expand Up @@ -57,7 +55,6 @@ class LlmDropdown(
}

private fun handleConfigUpdate(config: ConfigFeatures) {
hasServerSentModels = config.serverSentModels
if (!isVisible && config.serverSentModels) {
isVisible = true
revalidate()
Expand Down

0 comments on commit 1fe536e

Please sign in to comment.