aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-09-02 22:56:43 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-09-02 22:56:43 -0700
commit5f6001eb2330d8f1ba35674ffd6dfa0f7f0ecbe3 (patch)
treec68ee6019824596adc4df346bbbe59a8ecf28f0e /src/objective-c
parentacf5e107f3678334c08cc5effdbc73c3ae3f9042 (diff)
nit: _proxy -> _delegate
Diffstat (limited to 'src/objective-c')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCRequestHeaders.m16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCRequestHeaders.m b/src/objective-c/GRPCClient/private/GRPCRequestHeaders.m
index 50b04a6a87..7633107f55 100644
--- a/src/objective-c/GRPCClient/private/GRPCRequestHeaders.m
+++ b/src/objective-c/GRPCClient/private/GRPCRequestHeaders.m
@@ -68,13 +68,13 @@ static void CheckKeyValuePairIsValid(NSString *key, id value) {
@implementation GRPCRequestHeaders {
__weak GRPCCall *_call;
- NSMutableDictionary *_proxy;
+ NSMutableDictionary *_delegate;
}
- (instancetype)initWithCall:(GRPCCall *)call {
if ((self = [super init])) {
_call = call;
- _proxy = [NSMutableDictionary dictionary];
+ _delegate = [NSMutableDictionary dictionary];
}
return self;
}
@@ -87,7 +87,7 @@ static void CheckKeyValuePairIsValid(NSString *key, id value) {
}
- (id)objectForKeyedSubscript:(NSString *)key {
- return _proxy[key.lowercaseString];
+ return _delegate[key.lowercaseString];
}
- (void)setObject:(id)obj forKeyedSubscript:(NSString *)key {
@@ -95,26 +95,26 @@ static void CheckKeyValuePairIsValid(NSString *key, id value) {
CheckKeyIsValid(key);
key = key.lowercaseString;
CheckKeyValuePairIsValid(key, obj);
- _proxy[key] = obj;
+ _delegate[key] = obj;
}
- (void)removeObjectForKey:(NSString *)key {
[self checkCallIsNotStarted];
- [_proxy removeObjectForKey:key.lowercaseString];
+ [_delegate removeObjectForKey:key.lowercaseString];
}
- (void)removeAllObjects {
[self checkCallIsNotStarted];
- [_proxy removeAllObjects];
+ [_delegate removeAllObjects];
}
// TODO(jcanizales): Just forward all invocations?
- (NSUInteger)count {
- return _proxy.count;
+ return _delegate.count;
}
- (grpc_metadata *)grpc_metadataArray {
- return _proxy.grpc_metadataArray;
+ return _delegate.grpc_metadataArray;
}
@end