Remove UUID::SetFromCString

Replace uses with SetFromStringRef. NFC.

llvm-svn: 335246
This commit is contained in:
Pavel Labath
2018-06-21 15:24:39 +00:00
parent bb9dedfa8a
commit a174bcbf03
10 changed files with 9 additions and 18 deletions

View File

@@ -19,7 +19,7 @@
#include <stdio.h>
#include <string.h>
namespace lldb_private {
using namespace lldb_private;
UUID::UUID() { Clear(); }
@@ -170,14 +170,6 @@ size_t UUID::SetFromStringRef(llvm::StringRef str, uint32_t num_uuid_bytes) {
return 0;
}
size_t UUID::SetFromCString(const char *cstr, uint32_t num_uuid_bytes) {
if (cstr == NULL)
return 0;
return SetFromStringRef(cstr, num_uuid_bytes);
}
}
bool lldb_private::operator==(const lldb_private::UUID &lhs,
const lldb_private::UUID &rhs) {
return lhs.GetBytes() == rhs.GetBytes();