doc: remove needless code