Skip to content

Commit

Permalink
tidy: remove unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
acke committed Sep 16, 2024
1 parent 280a979 commit f155b48
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/main/kotlin/io/snyk/plugin/ui/jcef/ApplyFixHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ class ApplyFixHandler(private val project: Project) {
}
}


private fun log(logMessage: String) {
when {
enableDebug -> logger.debug(logMessage)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.snyk.plugin.ui.jcef

import com.google.gson.Gson
import com.intellij.openapi.project.Project
import com.intellij.ui.jcef.JBCefBrowserBase
import com.intellij.ui.jcef.JBCefJSQuery
import org.cef.browser.CefBrowser
Expand All @@ -10,7 +9,7 @@ import org.cef.handler.CefLoadHandlerAdapter
import org.jetbrains.concurrency.runAsync
import snyk.common.lsp.LanguageServerWrapper

class GenerateAIFixHandler(private val project: Project) {
class GenerateAIFixHandler() {

fun generateAIFixCommand(jbCefBrowser: JBCefBrowserBase): CefLoadHandlerAdapter {
val aiFixQuery = JBCefJSQuery.create(jbCefBrowser)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SuggestionDescriptionPanelFromLS(
openFileLoadHandlerGenerator.generate(it)
}

val generateAIFixHandler = GenerateAIFixHandler(snykFile.project)
val generateAIFixHandler = GenerateAIFixHandler()
loadHandlerGenerators += {
generateAIFixHandler.generateAIFixCommand(it)
}
Expand Down

0 comments on commit f155b48

Please sign in to comment.