Remove unsed codes