Use GRPC_ABSTRACT

pull/18176/head
tzik 6 years ago
parent 79f4b4cba6
commit e94a11482a
  1. 11
      src/core/ext/filters/client_channel/lb_policy.h
  2. 4
      src/core/ext/filters/client_channel/lb_policy_factory.h

@ -202,11 +202,7 @@ class LoadBalancingPolicy : public InternallyRefCounted<LoadBalancingPolicy> {
/// by the client channel.
virtual void UpdateState(grpc_connectivity_state state,
grpc_error* state_error,
UniquePtr<SubchannelPicker>) {
// The rest of this is copied from the GRPC_ABSTRACT macro.
gpr_log(GPR_ERROR, "Function marked GRPC_ABSTRACT was not implemented");
GPR_ASSERT(false);
}
UniquePtr<SubchannelPicker>) GRPC_ABSTRACT;
/// Requests that the resolver re-resolve.
virtual void RequestReresolution() GRPC_ABSTRACT;
@ -260,9 +256,8 @@ class LoadBalancingPolicy : public InternallyRefCounted<LoadBalancingPolicy> {
/// Note that the LB policy gets the set of addresses from the
/// GRPC_ARG_SERVER_ADDRESS_LIST channel arg.
virtual void UpdateLocked(const grpc_channel_args& args,
RefCountedPtr<Config> lb_config) { // NOLINT
GRPC_ABSTRACT;
}
RefCountedPtr<Config>) // NOLINT
GRPC_ABSTRACT;
/// Tries to enter a READY connectivity state.
/// This is a no-op by default, since most LB policies never go into

@ -31,9 +31,7 @@ class LoadBalancingPolicyFactory {
public:
/// Returns a new LB policy instance.
virtual OrphanablePtr<LoadBalancingPolicy> CreateLoadBalancingPolicy(
LoadBalancingPolicy::Args) const {
GRPC_ABSTRACT;
}
LoadBalancingPolicy::Args) const GRPC_ABSTRACT;
/// Returns the LB policy name that this factory provides.
/// Caller does NOT take ownership of result.

Loading…
Cancel
Save