Remove unused code in vhost