Unnecessary assignment in constructor