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. /// by the client channel.
virtual void UpdateState(grpc_connectivity_state state, virtual void UpdateState(grpc_connectivity_state state,
grpc_error* state_error, grpc_error* state_error,
UniquePtr<SubchannelPicker>) { UniquePtr<SubchannelPicker>) GRPC_ABSTRACT;
// 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);
}
/// Requests that the resolver re-resolve. /// Requests that the resolver re-resolve.
virtual void RequestReresolution() GRPC_ABSTRACT; 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 /// Note that the LB policy gets the set of addresses from the
/// GRPC_ARG_SERVER_ADDRESS_LIST channel arg. /// GRPC_ARG_SERVER_ADDRESS_LIST channel arg.
virtual void UpdateLocked(const grpc_channel_args& args, virtual void UpdateLocked(const grpc_channel_args& args,
RefCountedPtr<Config> lb_config) { // NOLINT RefCountedPtr<Config>) // NOLINT
GRPC_ABSTRACT; GRPC_ABSTRACT;
}
/// Tries to enter a READY connectivity state. /// Tries to enter a READY connectivity state.
/// This is a no-op by default, since most LB policies never go into /// This is a no-op by default, since most LB policies never go into

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

Loading…
Cancel
Save