JS inline minor: removed unused parameter
This commit is contained in:
committed by
Zalim Bashorov
parent
f022cd6281
commit
48bd71e0b6
+2
-3
@@ -62,7 +62,7 @@ private class UnusedLocalFunctionsCollector(functions: Map<JsName, JsFunction>)
|
|||||||
if (function.isLocal) {
|
if (function.isLocal) {
|
||||||
processLocalFunction(name, function)
|
processLocalFunction(name, function)
|
||||||
} else {
|
} else {
|
||||||
processNonLocalFunction(name, function)
|
processNonLocalFunction(function)
|
||||||
}
|
}
|
||||||
|
|
||||||
processed.add(function)
|
processed.add(function)
|
||||||
@@ -101,8 +101,7 @@ private class UnusedLocalFunctionsCollector(functions: Map<JsName, JsFunction>)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO drop name param?
|
private fun processNonLocalFunction(function: JsFunction) {
|
||||||
private fun processNonLocalFunction(name: JsName, function: JsFunction) {
|
|
||||||
for (referenced in collectFunctionReferencesInside(function)) {
|
for (referenced in collectFunctionReferencesInside(function)) {
|
||||||
tracker.markReachable(referenced)
|
tracker.markReachable(referenced)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user