From df184948ab5a76f45dd539d1093c9999554b4c98 Mon Sep 17 00:00:00 2001 From: lijincheng Date: Wed, 29 Nov 2023 09:44:12 +0800 Subject: [PATCH] [Bug] Remove non thread safe interfaces 1.remove operator[] in safemap Issue:https://gitee.com/openharmony/commonlibrary_c_utils/issues/I8K9WH Signed-off-by: lijincheng --- base/include/safe_map.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/base/include/safe_map.h b/base/include/safe_map.h index 9c1ca39..cf01000 100644 --- a/base/include/safe_map.h +++ b/base/include/safe_map.h @@ -45,11 +45,6 @@ public: return *this; } - V& operator[](const K& key) - { - return map_[key]; - } - V ReadVal(const K& key) { std::lock_guard lock(mutex_); -- Gitee