Remove unnecessary vertex.