Bug 1235261 - Part 7: Remove AutoInfallibleTArray. r=froydnj

This commit is contained in:
Birunthan Mohanathas 2016-01-31 17:12:13 +02:00
Родитель b00cdd6088
Коммит d39376e4d0
3 изменённых файлов: 0 добавлений и 14 удалений

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

@ -57,9 +57,6 @@ struct TileClient;
// nsTArray and AutoTArray are infallible by default. To opt-in to fallible
// behaviour, use the `mozilla::fallible` parameter and check the return value.
//
// InfallibleTArray and AutoInfallibleTArray are aliases for nsTArray and
// AutoTArray.
//
// If you just want to declare the nsTArray types (e.g., if you're in a header
// file and don't need the full nsTArray definitions) consider including
// nsTArrayForwardDeclare.h instead of nsTArray.h.

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

@ -31,6 +31,5 @@ template<class E, size_t N>
class AutoTArray;
#define InfallibleTArray nsTArray
#define AutoInfallibleTArray AutoTArray
#endif

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

@ -1040,8 +1040,6 @@ static bool test_conversion_operator() {
InfallibleTArray<int> i;
const InfallibleTArray<int> iconst;
AutoInfallibleTArray<int, 8> iauto;
const AutoInfallibleTArray<int, 8> iautoconst;
nsTArray<int> t;
const nsTArray<int> tconst;
@ -1058,10 +1056,6 @@ static bool test_conversion_operator() {
if ((void*)&z5 != (void*)&i) return false; \
const type<int>& z6 = iconst; \
if ((void*)&z6 != (void*)&iconst) return false; \
const type<int>& z7 = iauto; \
if ((void*)&z7 != (void*)&iauto) return false; \
const type<int>& z8 = iautoconst; \
if ((void*)&z8 != (void*)&iautoconst) return false; \
const type<int>& z9 = t; \
if ((void*)&z9 != (void*)&t) return false; \
const type<int>& z10 = tconst; \
@ -1093,7 +1087,6 @@ static bool test_SetLengthAndRetainStorage_no_ctor() {
FallibleTArray<int> f;
InfallibleTArray<int> i;
AutoInfallibleTArray<int, N> iauto;
nsTArray<int> t;
AutoTArray<int, N> tauto;
@ -1104,7 +1097,6 @@ static bool test_SetLengthAndRetainStorage_no_ctor() {
do { \
pre f post; \
pre i post; \
pre iauto post; \
pre t post; \
pre tauto post; \
} while (0)
@ -1118,7 +1110,6 @@ static bool test_SetLengthAndRetainStorage_no_ctor() {
void* initial_Hdrs[] = {
static_cast<BufAccessor<FallibleTArray<int> >&>(f).GetHdr(),
static_cast<BufAccessor<InfallibleTArray<int> >&>(i).GetHdr(),
static_cast<BufAccessor<AutoInfallibleTArray<int, N> >&>(iauto).GetHdr(),
static_cast<BufAccessor<nsTArray<int> >&>(t).GetHdr(),
static_cast<BufAccessor<AutoTArray<int, N> >&>(tauto).GetHdr(),
nullptr
@ -1140,7 +1131,6 @@ static bool test_SetLengthAndRetainStorage_no_ctor() {
void* current_Hdrs[] = {
static_cast<BufAccessor<FallibleTArray<int> >&>(f).GetHdr(),
static_cast<BufAccessor<InfallibleTArray<int> >&>(i).GetHdr(),
static_cast<BufAccessor<AutoInfallibleTArray<int, N> >&>(iauto).GetHdr(),
static_cast<BufAccessor<nsTArray<int> >&>(t).GetHdr(),
static_cast<BufAccessor<AutoTArray<int, N> >&>(tauto).GetHdr(),
nullptr