Remove unused code and add a comment clarifying the acceptState test