class LoadBalancer implements IFloodlightModule,
    ILoadBalancerService, IOFMessageListener {

    @Override
    public int removePool(String poolId) {
        LBPool pool;
        if (pools != null) {
            pool = pools.get(poolId);
            if (pool == null)	// fix dereference violations
            	return -1;
            if (pool.vipId != null)
                vips.get(pool.vipId).pools.remove(poolId);
            pools.remove(poolId);
            return 0;
        } else {
            return -1;
        }
    }

}