JS: optimize removeUnusedFunctionDefinitions

This commit is contained in:
Alexey Andreev
2017-02-13 16:19:08 +03:00
parent a1780234ee
commit cb8189989c
@@ -34,7 +34,7 @@ fun removeUnusedFunctionDefinitions(root: JsNode, functions: Map<JsName, JsFunct
val removable = with(UnusedLocalFunctionsCollector(functions)) {
process()
accept(root)
removableFunctions
removableFunctions.toSet()
}
NodeRemover(JsStatement::class.java) { statement ->