remove unused code in erlide_open