remove some range checks

which are more likely to hide an underlying bug than they are to help

Change-Id: I118b592677df05246912d7fa3d7ab8ca2fe99377
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177999
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2024-12-06 19:53:51 +02:00
parent b0d6329c05
commit 10c2eee93b

View file

@ -906,9 +906,6 @@ void CharAttribList::Remove(const EditCharAttrib* p)
void CharAttribList::Remove(sal_Int32 nPos)
{
if (nPos >= static_cast<sal_Int32>(maAttribs.size()))
return;
maAttribs.erase(maAttribs.begin()+nPos);
}