issue #1652: remove useless code