linguistic/source/dicimp.cxx | 7 ------- 1 file changed, 7 deletions(-)
New commits: commit 52112a1b8c778bf94534537978a36ba82d7cdf6c Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed May 18 13:55:28 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed May 18 18:02:03 2022 +0200 DicEntry doesn't need locking it never modifies state Change-Id: I040ba1bff6ea0567b13bf9d06150caefdcdaa522 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134529 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 803445b4ef28..7eb18d64c635 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -503,8 +503,6 @@ int DictionaryNeo::cmpDicEntry(std::u16string_view rWord1, std::u16string_view rWord2, bool bSimilarOnly) { - MutexGuard aGuard( GetLinguMutex() ); - // returns 0 if rWord1 is equal to rWord2 // " a value < 0 if rWord1 is less than rWord2 // " a value > 0 if rWord1 is greater than rWord2 @@ -1054,8 +1052,6 @@ void DicEntry::splitDicFileWord(const OUString &rDicFileWord, OUString &rDicWord, OUString &rReplacement) { - MutexGuard aGuard( GetLinguMutex() ); - sal_Int32 nDelimPos = rDicFileWord.indexOf( "==" ); if (-1 != nDelimPos) { @@ -1075,19 +1071,16 @@ void DicEntry::splitDicFileWord(const OUString &rDicFileWord, OUString SAL_CALL DicEntry::getDictionaryWord( ) { - MutexGuard aGuard( GetLinguMutex() ); return aDicWord; } sal_Bool SAL_CALL DicEntry::isNegative( ) { - MutexGuard aGuard( GetLinguMutex() ); return bIsNegativ; } OUString SAL_CALL DicEntry::getReplacementText( ) { - MutexGuard aGuard( GetLinguMutex() ); return aReplacement; }