uicore: remove useless needForceUpdate method in UICore class

also fixes clang static-analyzer warning "This statement is never executed"