remove unused code from xml_import.py

@dmitchell no rush on this, can be done post RC-cutting today.