Encrypted attrs can only be for old-style attrs.

Closes CID #1035573
Remove dead code.

Fixes CID #1187990