mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
Remove UUID::SetFromCString
Replace uses with SetFromStringRef. NFC. llvm-svn: 335246
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user