Remove a pair of unused broken functions
This commit is contained in:
parent
9889664ffa
commit
899955f9e3
@ -473,22 +473,6 @@ bool cByteBuffer::ReadBool(bool & a_Value)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool cByteBuffer::ReadBEUTF16String16(AString & a_Value)
|
|
||||||
{
|
|
||||||
CHECK_THREAD
|
|
||||||
CheckValid();
|
|
||||||
UInt16 Length;
|
|
||||||
if (!ReadBEUInt16(Length))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return ReadUTF16String(a_Value, Length);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool cByteBuffer::ReadVarInt32(UInt32 & a_Value)
|
bool cByteBuffer::ReadVarInt32(UInt32 & a_Value)
|
||||||
{
|
{
|
||||||
CHECK_THREAD
|
CHECK_THREAD
|
||||||
@ -929,24 +913,6 @@ bool cByteBuffer::ReadString(AString & a_String, size_t a_Count)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool cByteBuffer::ReadUTF16String(AString & a_String, size_t a_NumChars)
|
|
||||||
{
|
|
||||||
// Reads 2 * a_NumChars bytes and interprets it as a UTF16 string, converting it into UTF8 string a_String
|
|
||||||
CHECK_THREAD
|
|
||||||
CheckValid();
|
|
||||||
AString RawData;
|
|
||||||
if (!ReadString(RawData, a_NumChars * 2))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
RawBEToUTF8(RawData.data(), a_NumChars, a_String);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool cByteBuffer::SkipRead(size_t a_Count)
|
bool cByteBuffer::SkipRead(size_t a_Count)
|
||||||
{
|
{
|
||||||
CHECK_THREAD
|
CHECK_THREAD
|
||||||
|
@ -63,7 +63,6 @@ public:
|
|||||||
bool ReadBEFloat (float & a_Value);
|
bool ReadBEFloat (float & a_Value);
|
||||||
bool ReadBEDouble (double & a_Value);
|
bool ReadBEDouble (double & a_Value);
|
||||||
bool ReadBool (bool & a_Value);
|
bool ReadBool (bool & a_Value);
|
||||||
bool ReadBEUTF16String16(AString & a_Value); // string length as BE short, then string as UTF-16BE
|
|
||||||
bool ReadVarInt32 (UInt32 & a_Value);
|
bool ReadVarInt32 (UInt32 & a_Value);
|
||||||
bool ReadVarInt64 (UInt64 & a_Value);
|
bool ReadVarInt64 (UInt64 & a_Value);
|
||||||
bool ReadVarUTF8String (AString & a_Value); // string length as VarInt, then string as UTF-8
|
bool ReadVarUTF8String (AString & a_Value); // string length as VarInt, then string as UTF-8
|
||||||
@ -109,9 +108,6 @@ public:
|
|||||||
/** Reads a_Count bytes into a_String; returns true if successful */
|
/** Reads a_Count bytes into a_String; returns true if successful */
|
||||||
bool ReadString(AString & a_String, size_t a_Count);
|
bool ReadString(AString & a_String, size_t a_Count);
|
||||||
|
|
||||||
/** Reads 2 * a_NumChars bytes and interprets it as a UTF16-BE string, converting it into UTF8 string a_String */
|
|
||||||
bool ReadUTF16String(AString & a_String, size_t a_NumChars);
|
|
||||||
|
|
||||||
/** Skips reading by a_Count bytes; returns false if not enough bytes in the ringbuffer */
|
/** Skips reading by a_Count bytes; returns false if not enough bytes in the ringbuffer */
|
||||||
bool SkipRead(size_t a_Count);
|
bool SkipRead(size_t a_Count);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user