Remove some useless code in inventory code