diff --git a/compiler/frontend/src/org/jetbrains/kotlin/psi/JetPsiFactory.kt b/compiler/frontend/src/org/jetbrains/kotlin/psi/JetPsiFactory.kt index f98e16f8333..08c8f377409 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/psi/JetPsiFactory.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/psi/JetPsiFactory.kt @@ -262,11 +262,6 @@ public class JetPsiFactory(private val project: Project) { return createEnumEntry("Entry()").initializerList!! } - public fun createEnumEntrySuperclassReferenceExpression(): JetEnumEntrySuperclassReferenceExpression { - val userType = createEnumEntryInitializerList().initializers[0].typeReference!!.typeElement as JetUserType - return userType.referenceExpression as JetEnumEntrySuperclassReferenceExpression - } - public fun createWhenEntry(entryText: String): JetWhenEntry { val function = createFunction("fun foo() { when(12) { " + entryText + " } }") val whenEntry = PsiTreeUtil.findChildOfType(function, javaClass()) @@ -295,10 +290,6 @@ public class JetPsiFactory(private val project: Project) { return if (fqName.isRoot()) null else createPackageDirective(fqName) } - public fun createImportDirective(path: String): JetImportDirective { - return createImportDirective(ImportPath(path)) - } - public fun createImportDirective(importPath: ImportPath): JetImportDirective { if (importPath.fqnPart().isRoot()) { throw IllegalArgumentException("import path must not be empty") @@ -328,10 +319,6 @@ public class JetPsiFactory(private val project: Project) { public fun createConstructorKeyword(): PsiElement = createClass("class A constructor()").getPrimaryConstructor()!!.getConstructorKeyword()!! - public fun createClassLabel(labelName: String): JetSimpleNameExpression { - return (createExpression("this@" + labelName) as JetThisExpression).getTargetLabel()!! - } - public fun createLabeledExpression(labelName: String): JetLabeledExpression = createExpression("$labelName@ 1") as JetLabeledExpression @@ -530,15 +517,6 @@ public class JetPsiFactory(private val project: Project) { return this } - public fun expressionBody(body: String): CallableBuilder { - assert(state == State.BODY || state == State.TYPE_CONSTRAINTS) - - sb.append(bodyPrefix()).append(" = ").append(body) - state = State.DONE - - return this - } - public fun initializer(body: String): CallableBuilder { assert(target == Target.READ_ONLY_PROPERTY && (state == State.BODY || state == State.TYPE_CONSTRAINTS))