remove random static mutex guard.

Presumably originally introduced to protect the static FileDeleter,
which has internal protection of its own now; cf. commit

1ae9ce8ad2

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Id3266d7f08a9f7bd620df49850242a250fc73903
pull/8604/head
Michael Meeks 2024-04-20 22:24:23 +01:00
parent a91036247b
commit a355e9b4ee
1 changed files with 1 additions and 2 deletions

View File

@ -160,6 +160,7 @@ inline std::string getTempFileCopyPath(const std::string& srcDir, const std::str
static FileDeleter fileDeleter;
fileDeleter.registerForDeletion(dstPath);
return dstPath;
}
@ -177,8 +178,6 @@ inline void getDocumentPathAndURL(const std::string& docFilename, std::string& d
{
const std::string testname = prefix;
static std::mutex lock;
std::unique_lock<std::mutex> guard(lock);
std::replace(prefix.begin(), prefix.end(), ' ', '_');
documentPath = getTempFileCopyPath(TDOC, docFilename, prefix);