Bug 1628715 - Part 6: Remove unused and redundant AppendElements overload. r=xpcom-reviewers,nika

The AppendElements overload accepting a mozilla::Array<Item, Length> is
redundant, since that is convertible to a mozilla::Span<const Item>, for which
a separate overload exists.

Differential Revision: https://phabricator.services.mozilla.com/D70386
This commit is contained in:
Simon Giesecke 2020-04-24 13:26:26 +00:00
Родитель 9cc891f41f
Коммит ddcf8e7ab1
1 изменённых файлов: 0 добавлений и 5 удалений

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

@ -1751,11 +1751,6 @@ class nsTArray_Impl
return AppendElements<Item, ActualAlloc>(aSpan.Elements(), aSpan.Length());
}
template <class Item, size_t Length, typename ActualAlloc = Alloc>
elem_type* AppendElements(const mozilla::Array<Item, Length>& aArray) {
return AppendElements<Item, ActualAlloc>(&aArray[0], Length);
}
public:
template <class Item>
/* [[nodiscard]] */