aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-12-03 23:15:09 -0800
committerGravatar Jorge Canizales <jcanizales@google.com>2015-12-03 23:15:09 -0800
commit35768db8c95f4be55324c61b7b6b3b55a5d589e9 (patch)
tree35b1ad198974f3914b8cea2d4010be377817e33c
parente1f74454ac210b4896d9e53463c1849ca9b4193a (diff)
Mark the GRPCRequestHeaders protocol deprecated
-rw-r--r--src/objective-c/GRPCClient/GRPCCall.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.h b/src/objective-c/GRPCClient/GRPCCall.h
index 2a6ae5cedc..c9fda42855 100644
--- a/src/objective-c/GRPCClient/GRPCCall.h
+++ b/src/objective-c/GRPCClient/GRPCCall.h
@@ -50,6 +50,8 @@
#import <Foundation/Foundation.h>
#import <RxLibrary/GRXWriter.h>
+#include <AvailabilityMacros.h>
+
#pragma mark gRPC errors
/** Domain of NSError objects produced by gRPC. */
@@ -235,6 +237,7 @@ extern id const kGRPCTrailersKey;
#pragma mark Backwards compatibiity
/** This protocol is kept for backwards compatibility with existing code. */
+DEPRECATED_MSG_ATTRIBUTE("Use NSDictionary or NSMutableDictionary instead.")
@protocol GRPCRequestHeaders <NSObject>
@property(nonatomic, readonly) NSUInteger count;
@@ -245,6 +248,9 @@ extern id const kGRPCTrailersKey;
- (void)removeObjectForKey:(NSString *)key;
@end
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated"
/** This is only needed for backwards-compatibility. */
@interface NSMutableDictionary (GRPCRequestHeaders) <GRPCRequestHeaders>
@end
+#pragma clang diagnostic pop