Skip to content

Commit 6107eda

Browse files
committed
[PdbAstBuilder] Remove unused functions
PdbAstBuilder.cpp:273:20: warning: unused function 'GetParentUniqueName' [-Wunused-function] PdbAstBuilder.cpp:267:13: warning: unused function 'IsUniqueNameEnumTag' [-Wunused-function] llvm-svn: 350652
1 parent 6ea33bc commit 6107eda

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -264,23 +264,6 @@ PdbAstBuilder::CreateDeclInfoForType(const TagRecord &record, TypeIndex ti) {
264264
return {context, uname};
265265
}
266266

267-
static bool IsUniqueNameEnumTag(llvm::StringRef unique_name) {
268-
if (unique_name.size() < 4)
269-
return false;
270-
return unique_name[3] == 'W';
271-
}
272-
273-
static std::string GetParentUniqueName(llvm::StringRef unique_name) {
274-
if (unique_name.size() < 4)
275-
return unique_name;
276-
size_t start = IsUniqueNameEnumTag(unique_name) ? 5 : 4;
277-
size_t end = unique_name.find('@');
278-
if (end == llvm::StringRef::npos)
279-
return unique_name;
280-
std::string result = unique_name.str();
281-
return result.erase(start, end - start + 1);
282-
}
283-
284267
void PdbAstBuilder::BuildParentMap() {
285268
LazyRandomTypeCollection &types = m_index.tpi().typeCollection();
286269

0 commit comments

Comments
 (0)