Permalink
Browse files

removed a redundant var in JavaWriter.flagsToStr

the variable x was assigned to, but was never used.
  • Loading branch information...
1 parent 25aabc8 commit 437d61994c401185841ff4f65065d79aa5e18d0b @mesagie mesagie committed Mar 15, 2013
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/scalap/scala/tools/scalap/JavaWriter.scala
@@ -17,16 +17,15 @@ class JavaWriter(classfile: Classfile, writer: Writer) extends CodeWriter(writer
def flagsToStr(clazz: Boolean, flags: Int): String = {
val buffer = new StringBuffer()
- var x: StringBuffer = buffer
if (((flags & 0x0007) == 0) &&
((flags & 0x0002) != 0))
- x = buffer.append("private ")
+ buffer.append("private ")
if ((flags & 0x0004) != 0)
- x = buffer.append("protected ")
+ buffer.append("protected ")
if ((flags & 0x0010) != 0)
- x = buffer.append("final ")
+ buffer.append("final ")
if ((flags & 0x0400) != 0)
- x = if (clazz) buffer.append("abstract ")
+ if (clazz) buffer.append("abstract ")
else buffer.append("/*deferred*/ ")
buffer.toString()
}

0 comments on commit 437d619

Please sign in to comment.