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