core: remove unnecessary private method (#5417)

This commit is contained in:
Kun Zhang 2019-03-01 17:28:30 -08:00 committed by GitHub
parent 5cfff5bfce
commit 8806403b3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -1316,7 +1316,7 @@ final class ManagedChannelImpl extends ManagedChannel implements
try {
serviceConfigInterceptor.handleUpdate(serviceConfig);
if (retryEnabled) {
throttle = getThrottle(config);
throttle = ServiceConfigUtil.getThrottlePolicy(serviceConfig);
}
} catch (RuntimeException re) {
logger.log(
@ -1380,12 +1380,6 @@ final class ManagedChannelImpl extends ManagedChannel implements
}
}
@Nullable
private static Throttle getThrottle(Attributes config) {
return ServiceConfigUtil.getThrottlePolicy(
config.get(GrpcAttributes.NAME_RESOLVER_SERVICE_CONFIG));
}
private final class SubchannelImpl extends AbstractSubchannel {
// Set right after SubchannelImpl is created.
InternalSubchannel subchannel;