From 3941f9dbf3557df013948d444b402b432b9e6648 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Wed, 15 Jan 2020 15:49:23 -0800 Subject: [PATCH] Revert "Sidestep multiple initialization issue of Tracers with Makefile" --- src/core/lib/debug/trace.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/core/lib/debug/trace.cc b/src/core/lib/debug/trace.cc index 6e66c89b473..84c0a3805d3 100644 --- a/src/core/lib/debug/trace.cc +++ b/src/core/lib/debug/trace.cc @@ -70,14 +70,6 @@ bool TraceFlagList::Set(const char* name, bool enabled) { } void TraceFlagList::Add(TraceFlag* flag) { - // TODO(yashykt): This loop is present to sidestep - // https://github.com/grpc/grpc/issues/21213. Remove it when either Makefile - // is fixed, or it's deprecated. - for (TraceFlag* t = root_tracer_; t != nullptr; t = t->next_tracer_) { - if (t == flag) { - return; - } - } flag->next_tracer_ = root_tracer_; root_tracer_ = flag; }