diff --git a/include/llvm/Object/YAML.h b/include/llvm/Object/YAML.h index e349e35dd45..7f59dd1cbc8 100644 --- a/include/llvm/Object/YAML.h +++ b/include/llvm/Object/YAML.h @@ -36,14 +36,6 @@ public: : Data(reinterpret_cast(Data.data()), Data.size()), DataIsHexString(true) {} BinaryRef() : DataIsHexString(true) {} - StringRef getHex() const { - assert(DataIsHexString); - return StringRef(reinterpret_cast(Data.data()), Data.size()); - } - ArrayRef getBinary() const { - assert(!DataIsHexString); - return Data; - } /// \brief The number of bytes that are represented by this BinaryRef. /// This is the number of bytes that writeAsBinary() will write. ArrayRef::size_type binary_size() const {