Skip to content

Commit 0cfb4a6

Browse files
author
Davide Italiano
committed
[FormatManager] Provide only one variant of EnableCategory.
All the callers pass a single language anyway.
1 parent 89618a7 commit 0cfb4a6

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

lldb/include/lldb/DataFormatters/FormatManager.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,15 @@ class FormatManager : public IFormatChangeListener {
5252
void
5353
EnableCategory(ConstString category_name,
5454
TypeCategoryMap::Position pos = TypeCategoryMap::Default) {
55-
EnableCategory(category_name, pos,
56-
std::initializer_list<lldb::LanguageType>());
55+
EnableCategory(category_name, pos, {});
5756
}
5857

5958
void EnableCategory(ConstString category_name,
6059
TypeCategoryMap::Position pos, lldb::LanguageType lang) {
61-
std::initializer_list<lldb::LanguageType> langs = {lang};
62-
EnableCategory(category_name, pos, langs);
63-
}
64-
65-
void EnableCategory(ConstString category_name,
66-
TypeCategoryMap::Position pos = TypeCategoryMap::Default,
67-
std::initializer_list<lldb::LanguageType> langs = {}) {
6860
TypeCategoryMap::ValueSP category_sp;
6961
if (m_categories_map.Get(category_name, category_sp) && category_sp) {
7062
m_categories_map.Enable(category_sp, pos);
71-
for (const lldb::LanguageType lang : langs)
72-
category_sp->AddLanguage(lang);
63+
category_sp->AddLanguage(lang);
7364
}
7465
}
7566

0 commit comments

Comments
 (0)