From 6cbd5ab457913fead18186234146fd9461a47339 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 7 Apr 2011 16:21:32 +0200 Subject: [PATCH] dead code --- .../jetbrains/jet/codegen/ExpressionCodegen.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/idea/src/org/jetbrains/jet/codegen/ExpressionCodegen.java b/idea/src/org/jetbrains/jet/codegen/ExpressionCodegen.java index b619b7c5de8..9f6577ebe63 100644 --- a/idea/src/org/jetbrains/jet/codegen/ExpressionCodegen.java +++ b/idea/src/org/jetbrains/jet/codegen/ExpressionCodegen.java @@ -333,20 +333,6 @@ public class ExpressionCodegen extends JetVisitor { return containingClass.getQualifiedName().replace(".", "/"); } - private void boxIfNeeded(PsiType type) { - if (type instanceof PsiPrimitiveType && type != PsiType.VOID) { - if (type == PsiType.LONG) { - v.invokestatic("java/lang/Long", "valueOf", "(J)Ljava/lang/Long;"); - } - else if (type == PsiType.INT) { - v.invokestatic("java/lang/Integer", "valueOf", "(I)Ljava/lang/Integer;"); - } - else { - throw new UnsupportedOperationException("Don't know how to box type " + type); - } - } - } - private void unbox(PsiType type) { if (type instanceof PsiPrimitiveType) { if (type == PsiType.INT) {