sfx2/source/view/lokhelper.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit 21c215a0345feb347c7adeea5aca766ede23f54a
Author: Tomaž Vajngerl <[email protected]>
AuthorDate: Thu Feb 8 18:55:44 2024 +0900
Commit: Miklos Vajna <[email protected]>
CommitDate: Mon Feb 12 08:26:15 2024 +0100
lok: remove unneeded mutex guard
Change-Id: I9e9ef3fd4ad43c2523c286f534e14e839aada453
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163114
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Miklos Vajna <[email protected]>
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index 55d111f1a433..e6fc7e8c7114 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -1146,11 +1146,9 @@ void LOKEditViewHistory::Update(bool bRemove)
if (!comphelper::LibreOfficeKit::isActive())
return;
- static std::mutex aMutex;
SfxViewShell* pViewShell = SfxViewShell::Current();
if (pViewShell)
{
- std::lock_guard<std::mutex> aLockGuard{aMutex};
int nDocId = pViewShell->GetDocId().get();
if (maEditViewHistory.find(nDocId) != maEditViewHistory.end())
maEditViewHistory[nDocId].remove(pViewShell);