Skip to content

Commit 955716d

Browse files
committed
fix(compiler): remove unused process handler code
Remove unused `createProcessHandler` function and related imports, as they reference unresolved symbol 'forTerminalPtyProcess'. This cleanup aligns with the removal of unnecessary
1 parent 0068040 commit 955716d

File tree

1 file changed

+0
-11
lines changed
  • exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec

1 file changed

+0
-11
lines changed

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/ShellInsCommand.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ import com.intellij.execution.process.*
1414
import com.intellij.ide.scratch.ScratchFileService
1515
import com.intellij.ide.scratch.ScratchRootType
1616
import com.intellij.openapi.application.ApplicationManager
17-
import com.intellij.openapi.application.runInEdt
1817
import com.intellij.openapi.project.Project
1918
import com.intellij.openapi.util.Key
2019
import com.intellij.openapi.util.text.StringUtil
2120
import com.intellij.openapi.vfs.VirtualFile
2221
import com.intellij.sh.ShLanguage
2322
import com.intellij.util.concurrency.Semaphore
24-
import com.intellij.util.io.BaseOutputReader
2523
import java.io.File
2624
import java.io.InputStreamReader
2725
import java.io.BufferedReader
@@ -129,15 +127,6 @@ class ShellInsCommand(val myProject: Project, private val shellFile: String?, va
129127
return output.toString()
130128
}
131129

132-
@Throws(ExecutionException::class)
133-
private fun createProcessHandler(commandLine: GeneralCommandLine): ProcessHandler {
134-
return object : KillableProcessHandler(commandLine) {
135-
override fun readerOptions(): BaseOutputReader.Options {
136-
return BaseOutputReader.Options.forTerminalPtyProcess()
137-
}
138-
}
139-
}
140-
141130
private fun createTimeLimitedExecutionProcess(
142131
processHandler: ProcessHandler,
143132
mode: ExecutionMode,

0 commit comments

Comments
 (0)