Remove attribute assignment which is never used