Remove redundant attributes

Required by: https://github.com/D-Programming-Language/dmd/pull/3696
Of course it does! It wouldn't have compiled otherwise :) This doesn't mean the cast inside is correct. Likely the person intended to use the benefits of `inout`, couldn't get it to compile, and put in the cast because of the compiler complaints.