From f41e24b35fe9fd79c20531cf9a51281b47733ce2 Mon Sep 17 00:00:00 2001 From: ncteisen Date: Sat, 20 Jan 2018 11:40:12 -0800 Subject: [PATCH] Remove uuid from channel --- src/core/lib/surface/channel.cc | 5 ----- src/core/lib/surface/channel.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/core/lib/surface/channel.cc b/src/core/lib/surface/channel.cc index e80c36465e4..12b920a2c40 100644 --- a/src/core/lib/surface/channel.cc +++ b/src/core/lib/surface/channel.cc @@ -54,7 +54,6 @@ typedef struct registered_call { } registered_call; struct grpc_channel { - intptr_t uuid; int is_client; grpc_compression_options compression_options; grpc_mdelem default_authority; @@ -104,7 +103,6 @@ grpc_channel* grpc_channel_create_with_builder( memset(channel, 0, sizeof(*channel)); channel->target = target; channel->is_client = grpc_channel_stack_type_is_client(channel_stack_type); - channel->uuid = -1; channel->tracer = nullptr; gpr_mu_init(&channel->registered_call_mu); channel->registered_calls = nullptr; @@ -205,7 +203,6 @@ grpc_channel* grpc_channel_create_with_builder( if (max_nodes > 0) { channel->tracer = grpc_core::New( max_nodes); // TODO(ncteisen): leaky yo - channel->uuid = channel->tracer->GetUuid(); } } } @@ -220,8 +217,6 @@ char* grpc_channel_get_trace(grpc_channel* channel, bool recursive) { return channel->tracer ? channel->tracer->RenderTrace(recursive) : nullptr; } -intptr_t grpc_channel_get_uuid(grpc_channel* channel) { return channel->uuid; } - grpc_channel* grpc_channel_create(const char* target, const grpc_channel_args* input_args, grpc_channel_stack_type channel_stack_type, diff --git a/src/core/lib/surface/channel.h b/src/core/lib/surface/channel.h index 507013f4529..5820bbbd80d 100644 --- a/src/core/lib/surface/channel.h +++ b/src/core/lib/surface/channel.h @@ -59,7 +59,6 @@ size_t grpc_channel_get_call_size_estimate(grpc_channel* channel); void grpc_channel_update_call_size_estimate(grpc_channel* channel, size_t size); char* grpc_channel_get_trace(grpc_channel* channel, bool recursive); -intptr_t grpc_channel_get_uuid(grpc_channel* channel); #ifndef NDEBUG void grpc_channel_internal_ref(grpc_channel* channel, const char* reason);