Skip to content

Commit 1b52bdc

Browse files
committed
Code cleaning
1 parent 8f51bbe commit 1b52bdc

File tree

5 files changed

+3
-56
lines changed

5 files changed

+3
-56
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/Keywords.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ private val kotlinHardKeywords = setOf(
1616
"val", "var", "when", "while"
1717
)
1818

19+
// Not implemented yet
20+
@Suppress("unused")
1921
private val jsKeywords = setOf(
2022
"abstract", "arguments", "await", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue",
2123
"debugger", "default", "delete", "do", "double", "else", "enum", "eval", "export", "extends", "false", "final",

utbot-intellij/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ apply plugin: 'org.jetbrains.intellij'
4040
// See https://github.com/JetBrains/gradle-intellij-plugin/
4141
intellij {
4242
version = '2020.2'
43+
// Community edition doesn't support JavaScriptLanguage plugin
4344
type = "IU"
4445
// to use local IDEA comment out "version" and add localPath instead:
4546
// localPath 'c:/all/tools/idea'
46-
type = "IU"
4747
plugins = [
4848
'java',
4949
// TODO: SAT-1539 - specify version of android plugin to be supported by our kotlin version.

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/js/JsActionMethods.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ object JsActionMethods {
4848
val editor = e.getData(CommonDataKeys.EDITOR) ?: return null
4949
val file = e.getData(CommonDataKeys.PSI_FILE) as? JSFile ?: return null
5050
val element = findPsiElement(file, editor) ?: return null
51-
val kek = element.module
5251
val module = element.module ?: return null
5352
val focusedMethod = getContainingMethod(element)
5453
containingClass(element)?.let {

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/utils/JsPsiElementHandler.kt

Lines changed: 0 additions & 53 deletions
This file was deleted.

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/utils/PsiElementHandler.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ interface PsiElementHandler {
1616
fun makePsiElementHandler(file: PsiFile): PsiElementHandler =
1717
when (file) {
1818
is KtFile -> KotlinPsiElementHandler()
19-
is JSFile -> JsPsiElementHandler()
2019
else -> JavaPsiElementHandler()
2120
}
2221
}

0 commit comments

Comments
 (0)