[guilib] remove dead code