Skip to content

Commit

Permalink
feat(devins-lang): remove unused methods #100
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 23, 2024
1 parent 13b796f commit cd1bf89
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Expand Up @@ -29,11 +29,6 @@ class JavaAutoTestService : AutoTestService() {
override fun runConfigurationClass(project: Project): Class<out RunProfile> = GradleRunConfiguration::class.java
override fun isApplicable(element: PsiElement): Boolean = element.language is JavaLanguage

override fun createConfiguration(project: Project, path: String): RunConfiguration? {
val file = LocalFileSystem.getInstance().refreshAndFindFileByPath(path)
return file?.let { createConfiguration(project, it) }
}

override fun createConfiguration(project: Project, virtualFile: VirtualFile): RunConfiguration? {
val name = virtualFile.name

Expand Down
3 changes: 0 additions & 3 deletions src/main/kotlin/cc/unitmesh/devti/provider/RunService.kt
Expand Up @@ -12,7 +12,6 @@ import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import org.jetbrains.concurrency.resolvedPromise

interface RunService {
private val logger: Logger get() = logger<RunService>()
Expand All @@ -27,8 +26,6 @@ interface RunService {

fun createConfiguration(project: Project, virtualFile: VirtualFile): RunConfiguration? = null

fun createConfiguration(project: Project, path: String): RunConfiguration? = null

fun runFile(project: Project, virtualFile: VirtualFile): String? {
val runManager = RunManager.getInstance(project)
var testConfig = runManager.allConfigurationsList.firstOrNull {
Expand Down

0 comments on commit cd1bf89

Please sign in to comment.