From: Christian Weisgerber Subject: Re: tog: remove redundant variable To: gameoftrees@openbsd.org Date: Thu, 3 Dec 2020 20:12:00 +0100 Stefan Sperling: > The variable 'child_focussed' in struct tog_view is redundant because all > reads of 'view->child_focussed' are preceded by a NULL check of 'child'. > So we might as well look at 'child->focussed' directly. And if this value > doesn't match 'child_focussed' then we have a bug. ok! -- Christian "naddy" Weisgerber naddy@mips.inka.de