From 78dfc945b098bb4ed16c641437e7887708327af8 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 6 Aug 2019 04:01:58 +0000 Subject: Remove unused function 'SetMangledCounterparts' (NFC) This function is not referenced. llvm-svn: 367975 --- lldb/source/Utility/ConstString.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'lldb/source/Utility/ConstString.cpp') diff --git a/lldb/source/Utility/ConstString.cpp b/lldb/source/Utility/ConstString.cpp index 46b7ab25938..2516ecf6a98 100644 --- a/lldb/source/Utility/ConstString.cpp +++ b/lldb/source/Utility/ConstString.cpp @@ -59,23 +59,6 @@ public: return nullptr; } - bool SetMangledCounterparts(const char *key_ccstr, const char *value_ccstr) { - if (key_ccstr != nullptr && value_ccstr != nullptr) { - { - const uint8_t h = hash(llvm::StringRef(key_ccstr)); - llvm::sys::SmartScopedWriter wlock(m_string_pools[h].m_mutex); - GetStringMapEntryFromKeyData(key_ccstr).setValue(value_ccstr); - } - { - const uint8_t h = hash(llvm::StringRef(value_ccstr)); - llvm::sys::SmartScopedWriter wlock(m_string_pools[h].m_mutex); - GetStringMapEntryFromKeyData(value_ccstr).setValue(key_ccstr); - } - return true; - } - return false; - } - const char *GetConstCString(const char *cstr) { if (cstr != nullptr) return GetConstCStringWithLength(cstr, strlen(cstr)); -- cgit v1.2.3