Bug 1674045 - Remove unused ProfilerStringView::String() - r=gregtatum

The previous patch removed the only two uses of ProfilerStringView::String().
Since it can be potentially expensive (creating a `std::string` object, sometimes allocating a buffer, and copying the string contents), it's best to remove it completely.

Differential Revision: https://phabricator.services.mozilla.com/D95116
This commit is contained in:
Gerald Squelart 2020-11-02 13:56:14 +00:00
Родитель 9acb23c062
Коммит 4fedf5eb76
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -186,10 +186,6 @@ class MOZ_STACK_CLASS ProfilerStringView {
return Span<const char>(Data(), Length());
}
[[nodiscard]] std::basic_string<CHAR> String() const {
return std::basic_string<CHAR>(mStringView);
}
private:
enum class Ownership { Literal, Reference, OwnedThroughStringView };