From c7d640936b51ac1d75ad88aeb791c48cfd74fd98 Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Thu, 26 Aug 2021 21:49:33 -0700 Subject: [PATCH] Remove unused public API to_span_ptr (#964) --- api/include/opentelemetry/trace/span.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/include/opentelemetry/trace/span.h b/api/include/opentelemetry/trace/span.h index be5f5276c..87b64747c 100644 --- a/api/include/opentelemetry/trace/span.h +++ b/api/include/opentelemetry/trace/span.h @@ -185,13 +185,5 @@ public: virtual bool IsRecording() const noexcept = 0; }; -template -nostd::shared_ptr to_span_ptr(TracerType *objPtr, - nostd::string_view name, - const trace::StartSpanOptions &options) -{ - return nostd::shared_ptr{new (std::nothrow) SpanType{*objPtr, name, options}}; -} - } // namespace trace OPENTELEMETRY_END_NAMESPACE