JS: optimize removeUnusedFunctionDefinitions
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ fun removeUnusedFunctionDefinitions(root: JsNode, functions: Map<JsName, JsFunct
|
|||||||
val removable = with(UnusedLocalFunctionsCollector(functions)) {
|
val removable = with(UnusedLocalFunctionsCollector(functions)) {
|
||||||
process()
|
process()
|
||||||
accept(root)
|
accept(root)
|
||||||
removableFunctions
|
removableFunctions.toSet()
|
||||||
}
|
}
|
||||||
|
|
||||||
NodeRemover(JsStatement::class.java) { statement ->
|
NodeRemover(JsStatement::class.java) { statement ->
|
||||||
|
|||||||
Reference in New Issue
Block a user