remove unused code in postinst