remove useless code in desktop