Fix typo

A few too many ='s there
Removed some code that was not needed.

Turns out the fixed code wasn't needed at all. Unsurprising given that it only set one flag and that line was broken before the previous fix, so the code obviously never did anything. It is now gone and unit tests are all still passing, including the ones that were written specifically for that code.