From 10c2eee93be76d8bdad980bd86d02c84896758c1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 6 Dec 2024 19:53:51 +0200 Subject: [PATCH] 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 --- editeng/source/editeng/ContentNode.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/editeng/source/editeng/ContentNode.cxx b/editeng/source/editeng/ContentNode.cxx index b7e7f4b0e8ee..3721016db04c 100644 --- a/editeng/source/editeng/ContentNode.cxx +++ b/editeng/source/editeng/ContentNode.cxx @@ -906,9 +906,6 @@ void CharAttribList::Remove(const EditCharAttrib* p) void CharAttribList::Remove(sal_Int32 nPos) { - if (nPos >= static_cast(maAttribs.size())) - return; - maAttribs.erase(maAttribs.begin()+nPos); }