Skip to content

Commit

Permalink
Remove unused public API to_span_ptr (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Aug 27, 2021
1 parent d210807 commit c7d6409
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions api/include/opentelemetry/trace/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,5 @@ class Span
virtual bool IsRecording() const noexcept = 0;
};

template <class SpanType, class TracerType>
nostd::shared_ptr<trace::Span> to_span_ptr(TracerType *objPtr,
nostd::string_view name,
const trace::StartSpanOptions &options)
{
return nostd::shared_ptr<trace::Span>{new (std::nothrow) SpanType{*objPtr, name, options}};
}

} // namespace trace
OPENTELEMETRY_END_NAMESPACE

0 comments on commit c7d6409

Please sign in to comment.