linguistic/source/hyphdta.cxx | 11 ----------- 1 file changed, 11 deletions(-)
New commits: commit 8bfdbf5b7474596fe1d7d3318920c9a36f630201 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed May 18 15:02:49 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu May 19 09:30:21 2022 +0200 HyphenatedWord and PossibleHyphens do not need locking they never modify any local (or global) state Change-Id: Ifcfb4f6bb30b1f21e61c5ffaeaad0d0292242760 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134535 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/linguistic/source/hyphdta.cxx b/linguistic/source/hyphdta.cxx index 4d2a88266c07..d19d8834006e 100644 --- a/linguistic/source/hyphdta.cxx +++ b/linguistic/source/hyphdta.cxx @@ -70,43 +70,36 @@ HyphenatedWord::~HyphenatedWord() OUString SAL_CALL HyphenatedWord::getWord() { - MutexGuard aGuard( GetLinguMutex() ); return aWord; } Locale SAL_CALL HyphenatedWord::getLocale() { - MutexGuard aGuard( GetLinguMutex() ); - return LanguageTag::convertToLocale( nLanguage ); } sal_Int16 SAL_CALL HyphenatedWord::getHyphenationPos() { - MutexGuard aGuard( GetLinguMutex() ); return nHyphenationPos; } OUString SAL_CALL HyphenatedWord::getHyphenatedWord() { - MutexGuard aGuard( GetLinguMutex() ); return aHyphenatedWord; } sal_Int16 SAL_CALL HyphenatedWord::getHyphenPos() { - MutexGuard aGuard( GetLinguMutex() ); return nHyphPos; } sal_Bool SAL_CALL HyphenatedWord::isAlternativeSpelling() { - MutexGuard aGuard( GetLinguMutex() ); return bIsAltSpelling; } @@ -129,28 +122,24 @@ PossibleHyphens::~PossibleHyphens() OUString SAL_CALL PossibleHyphens::getWord() { - MutexGuard aGuard( GetLinguMutex() ); return aWord; } Locale SAL_CALL PossibleHyphens::getLocale() { - MutexGuard aGuard( GetLinguMutex() ); return LanguageTag::convertToLocale( nLanguage ); } OUString SAL_CALL PossibleHyphens::getPossibleHyphens() { - MutexGuard aGuard( GetLinguMutex() ); return aWordWithHyphens; } Sequence< sal_Int16 > SAL_CALL PossibleHyphens::getHyphenationPositions() { - MutexGuard aGuard( GetLinguMutex() ); return aOrigHyphenPos; }