Removes all useless code