Bug 1255343 - Stop returning nsresult from NS_RegisterStaticAtoms; r=ehsan

It only ever returns NS_OK, and none of the callers check the result.
This commit is contained in:
Ms2ger 2016-03-18 09:03:43 +01:00
Родитель 4d796781c7
Коммит 3a6fa6704c
2 изменённых файлов: 4 добавлений и 5 удалений

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

@ -571,7 +571,7 @@ class CheckStaticAtomSizes
}
};
nsresult
void
RegisterStaticAtoms(const nsStaticAtom* aAtoms, uint32_t aAtomCount)
{
if (!gStaticAtomTable && !gStaticAtomTableSealed) {
@ -609,7 +609,6 @@ RegisterStaticAtoms(const nsStaticAtom* aAtoms, uint32_t aAtomCount)
entry->mAtom = atom;
}
}
return NS_OK;
}
already_AddRefed<nsIAtom>

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

@ -43,11 +43,11 @@ struct nsFakeStringBuffer
// Register an array of static atoms with the atom table
template<uint32_t N>
nsresult
void
NS_RegisterStaticAtoms(const nsStaticAtom (&aAtoms)[N])
{
extern nsresult RegisterStaticAtoms(const nsStaticAtom*, uint32_t aAtomCount);
return RegisterStaticAtoms(aAtoms, N);
extern void RegisterStaticAtoms(const nsStaticAtom*, uint32_t aAtomCount);
RegisterStaticAtoms(aAtoms, N);
}
#endif