Guest User

Untitled

a guest
May 1st, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.20 KB | None | 0 0
  1.   @tailrec
  2.   protected final def removeAll(): Int = synchronized {
  3.     if (buffer.isEmpty) {
  4.       0
  5.     } else {
  6.       val child = buffer.head
  7.       removeChild(child)
  8.       removeAll() + 1
  9.     }
  10.   }
Advertisement
Add Comment
Please, Sign In to add comment