Remove useless variables