3 ms·
Well, privates that are unused or only used by something like $method = 'get' . $command; $this->$method; are marked in grey. Which means some methods
by cassowary 9y ago
Well, privates that are unused or only used by something like
$method = 'get' . $command;
$this->$method;
are marked in grey. Which means some methods that you need to keep are grey. Not necessarily helpful. And other methods you want to deleted are not grey.
(The solution to that is "write code that doesn't suck", but alas, dead code tends to be a bigger problem in code that you didn't write.)
But as others have said, the unused code that keeps me busy is the stuff that says:
if($this->option->isTurnedOn()) {
$this->doStuff();
} else {
$this->doThat();
}
Sometimes it turns out that everyone uses it in the non-default state. Then there's the cases where everyone wants to use it in the non-default state, they just don't know the option can be toggled.