From bd334efd0aec3d26d7ace3c5f8b858b07e0bb9bd Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 11 Feb 2019 16:14:02 +0000 Subject: Simplify ObjectFile::GetUUID instead of returning the UUID through by-ref argument and a boolean value indicating success, we can just return it directly. Since the UUID class already has an invalid state, it can be used to denote the failure without the additional bool. llvm-svn: 353714 --- lldb/source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lldb/source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp') diff --git a/lldb/source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp b/lldb/source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp index 8825c83f7476..5f36638f57cf 100644 --- a/lldb/source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp +++ b/lldb/source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp @@ -122,11 +122,6 @@ Symtab *ObjectFileBreakpad::GetSymtab() { return nullptr; } -bool ObjectFileBreakpad::GetUUID(UUID *uuid) { - *uuid = m_uuid; - return true; -} - void ObjectFileBreakpad::CreateSections(SectionList &unified_section_list) { if (m_sections_ap) return; -- cgit v1.2.3