Skip to content

Commit aa0851a

Browse files
committed
[lldb][DataFormatter][NFC] Remove redundant variables in std::map formatter
Redundant since: ``` commit be3be28 Author: Enrico Granata <[email protected]> Date: Mon Oct 3 23:33:00 2016 +0000 Changes to the std::multimap formatter to make it work against trunk libc++ Fixes rdar://28237486 llvm-svn: 283160 ```
1 parent 1787d4b commit aa0851a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ class MapEntry {
3030
: m_entry_sp(entry ? entry->GetSP() : ValueObjectSP()) {}
3131

3232
ValueObjectSP left() const {
33-
static ConstString g_left("__left_");
3433
if (!m_entry_sp)
3534
return m_entry_sp;
3635
return m_entry_sp->GetSyntheticChildAtOffset(
3736
0, m_entry_sp->GetCompilerType(), true);
3837
}
3938

4039
ValueObjectSP right() const {
41-
static ConstString g_right("__right_");
4240
if (!m_entry_sp)
4341
return m_entry_sp;
4442
return m_entry_sp->GetSyntheticChildAtOffset(
@@ -47,7 +45,6 @@ class MapEntry {
4745
}
4846

4947
ValueObjectSP parent() const {
50-
static ConstString g_parent("__parent_");
5148
if (!m_entry_sp)
5249
return m_entry_sp;
5350
return m_entry_sp->GetSyntheticChildAtOffset(

0 commit comments

Comments
 (0)