sw/source/filter/ww8/sortedarray.hxx | 41 ----------------------------------- 1 file changed, 41 deletions(-)
New commits: commit 7b8bb9f085ca8e70247da48fdd2bf7ab06a0a102 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Thu Jan 6 21:18:57 2022 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Jan 7 08:27:56 2022 +0100 sw: remove debug code that doesn't build anymore in ww::SortedArray It also claimed "You will not see this message again", but I don't see how the matching flag would be static. Change-Id: Ia003dc9c6326d44ad4f4409bed6aca490bfc964e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128064 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/source/filter/ww8/sortedarray.hxx b/sw/source/filter/ww8/sortedarray.hxx index 7efec13aa9ff..1229b83df057 100644 --- a/sw/source/filter/ww8/sortedarray.hxx +++ b/sw/source/filter/ww8/sortedarray.hxx @@ -57,47 +57,6 @@ namespace ww { OSL_ENSURE(mnNoElems && pWwSprmTab, "WW8: empty Array: Don't do that"); std::sort(mpWwSprmTab, mpWwSprmTab + mnNoElems); -#if OSL_DEBUG_LEVEL > 1 - bool bBroken=false; - OUString sError; - const C *pIter = mpWwSprmTab; - const C *pBeforeEnd = mpWwSprmTab + mnNoElems - 1; - while (pIter < pBeforeEnd) - { - if (pIter->nId == (pIter+1)->nId) - { - if (!bBroken) - { - sError = - "WW8: Duplicate in list, almost certainly don't " - "want that!\n" - "(You will not see this message again unless you " - "restart)\n" - "Extra entries are...\n"; - bBroken=true; - } - - size_t nSize = sizeof(C); - const sal_uInt8 *pHack = - reinterpret_cast<const sal_uInt8 *>(&(*pIter)); - for (size_t i=0; i < nSize; ++i) - { - sError += OUString::number( - static_cast<sal_Int32>(pHack[i]), 16); - sError += OUString(' '); - } - sError += OUString('\n'); - while (pIter->nId == (pIter+1)->nId && pIter < pBeforeEnd) - ++pIter; - } - else - ++pIter; - } - if (bBroken) - { - SAL_WARN( "sw", sError ); - } -#endif } }; }