Bug 1429723: Remove static analysis special-case that is no longer relevant. r=sfink

MozReview-Commit-ID: bqCHE0eOx
This commit is contained in:
Emilio Cobos Álvarez 2018-01-15 03:32:51 +01:00
Родитель 7063cec276
Коммит 9e0eab64a0
1 изменённых файлов: 1 добавлений и 13 удалений

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

@ -239,7 +239,6 @@ function treatAsSafeArgument(entry, varName, csuName)
["Gecko_CopyAlternateValuesFrom", "aDest", null],
["Gecko_CounterStyle_GetName", "aResult", null],
["Gecko_CounterStyle_GetSingleString", "aResult", null],
["Gecko_EnsureMozBorderColors", "aBorder", null],
["Gecko_nsTArray_FontFamilyName_AppendNamed", "aNames", null],
["Gecko_nsTArray_FontFamilyName_AppendGeneric", "aNames", null],
];
@ -1349,18 +1348,7 @@ function isSafeMemberPointer(containerType, memberType)
if (memberType.Kind != 'Pointer')
return false;
const {Type: {Kind: pointeeKind, Name: pointeeTypeName}} = memberType;
// nsStyleBorder has a member mBorderColors of type nsBorderColors**. It is
// lazily initialized to an array of 4 nsBorderColors, and should inherit
// the safety of its container.
if (containerType == 'nsStyleBorder' &&
pointeeKind == 'CSU' &&
pointeeTypeName == 'nsBorderColors')
{
return true;
}
// Special-cases go here :)
return false;
}