gateway: remove some unused code in refresh_smartgw_netmask