diff --git a/Telegram/SourceFiles/logs.cpp b/Telegram/SourceFiles/logs.cpp index 92a92b179..cf7084ea9 100644 --- a/Telegram/SourceFiles/logs.cpp +++ b/Telegram/SourceFiles/logs.cpp @@ -631,7 +631,6 @@ namespace internal { using Annotations = std::map; using AnnotationRefs = std::map; - std::mutex ProcessAnnotationsMutex; Annotations ProcessAnnotations; AnnotationRefs ProcessAnnotationRefs; @@ -1127,7 +1126,6 @@ namespace internal { } void setCrashAnnotation(const std::string &key, const QString &value) { - std::unique_lock lock(internal::ProcessAnnotationsMutex); if (!value.trimmed().isEmpty()) { internal::ProcessAnnotations[key] = value.toUtf8().constData(); } else { @@ -1136,7 +1134,6 @@ namespace internal { } void setCrashAnnotationRef(const std::string &key, const QString *valuePtr) { - std::unique_lock lock(internal::ProcessAnnotationsMutex); if (valuePtr) { internal::ProcessAnnotationRefs[key] = valuePtr; } else {