remove dead code
avoid -Wunused-parameter warning