You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code optimiser must be able to remove unused functions declaration. Function is unused when it is not used anywhere in the code except its own scope. For example, the fib function can be removed from the example below. It is used in its own block of code, but it is not used anywhere else in the code, so it is unused.
functionfib(int$x): int {
if (x == 1 || x == 0) {
return(x);
} else {
returnfib(x - 1) + fib(x - 2);
}
}
$a = 2;
write($a);
The text was updated successfully, but these errors were encountered:
Code optimiser must be able to remove unused functions declaration. Function is unused when it is not used anywhere in the code except its own scope. For example, the
fib
function can be removed from the example below. It is used in its own block of code, but it is not used anywhere else in the code, so it is unused.The text was updated successfully, but these errors were encountered: