From 16cf06ecc5e4c3131b6f13b2b296cd715687846f Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Thu, 26 Aug 2021 16:18:01 -0700 Subject: [PATCH] Remove unused public API to_span_ptr --- 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 be5f5276cd..87b64747cf 100644 --- a/api/include/opentelemetry/trace/span.h +++ b/api/include/opentelemetry/trace/span.h @@ -185,13 +185,5 @@ class Span 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