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
parent
a91036247b
commit
a355e9b4ee
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue