Skip to content

Eliminate unused (inlined) private methods (including $anonfun) #63

Open
@lrytz

Description

@lrytz

Example:

class C {
  def t = {
    val f = (b: Int, i: Object) => 0
    f(1, null)
  }
}

The classfile has an unused method C$$$anonfun$1$adapted. After closure rewriting and inlining C$$$anonfun$1$adapted, method t directly invokes C$$$anonfun$1. In case that method also gets inlined, it could be eliminated as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions