Delete redundant variables