diff options
author | 2018-06-11 15:19:06 -0700 | |
---|---|---|
committer | 2018-06-13 15:01:05 -0700 | |
commit | 1198d8dfc625ce123c591d8f5079e75f23f772e5 (patch) | |
tree | 5237875767d8ee43a69b85a183619b5f77514d13 /src/core/lib/security/context | |
parent | f82e28fb6f6d94f37bc646c1899f2e412e4b949e (diff) |
Reviewer feedback
Diffstat (limited to 'src/core/lib/security/context')
-rw-r--r-- | src/core/lib/security/context/security_context.cc | 5 | ||||
-rw-r--r-- | src/core/lib/security/context/security_context.h | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/lib/security/context/security_context.cc b/src/core/lib/security/context/security_context.cc index 98e3cfde10..1f93416b23 100644 --- a/src/core/lib/security/context/security_context.cc +++ b/src/core/lib/security/context/security_context.cc @@ -328,7 +328,6 @@ grpc_arg grpc_auth_context_to_arg(grpc_auth_context* p) { grpc_auth_context* grpc_find_auth_context_in_args( const grpc_channel_args* channel_args) { - const grpc_arg* arg = - grpc_channel_args_find(channel_args, GRPC_AUTH_CONTEXT_ARG); - return grpc_channel_arg_get_pointer<grpc_auth_context>(arg); + return grpc_channel_args_get_pointer<grpc_auth_context>( + channel_args, GRPC_AUTH_CONTEXT_ARG); } diff --git a/src/core/lib/security/context/security_context.h b/src/core/lib/security/context/security_context.h index e782e4f28f..2f73a5482c 100644 --- a/src/core/lib/security/context/security_context.h +++ b/src/core/lib/security/context/security_context.h @@ -108,7 +108,6 @@ void grpc_server_security_context_destroy(void* ctx); #define GRPC_AUTH_CONTEXT_ARG "grpc.auth_context" grpc_arg grpc_auth_context_to_arg(grpc_auth_context* c); -grpc_auth_context* grpc_auth_context_from_arg(const grpc_arg* arg); grpc_auth_context* grpc_find_auth_context_in_args( const grpc_channel_args* args); |