Removing useless statements in purge()