cleanup: remove useless copied code.