Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 282efae9 authored by Sergio Giro's avatar Sergio Giro
Browse files

system/core: remove methods returning SharedBuffer in String8, String16

Towards deprecation of SharedBuffer

Change-Id: I3069837db32837bcc0f5d8f1118ccd502c9070dc
parent fca4821e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -65,8 +65,6 @@ public:
    
    inline  const char16_t*     string() const;
    
            const SharedBuffer* sharedBuffer() const;
    
            size_t              size() const;
            void                setTo(const String16& other);
            status_t            setTo(const char16_t* other);
+0 −2
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@

namespace android {

class SharedBuffer;
class String16;
class TextOutput;

@@ -69,7 +68,6 @@ public:
    inline  bool                isEmpty() const;
    
            size_t              length() const;
            const SharedBuffer* sharedBuffer() const;
    
            void                clear();

+0 −5
Original line number Diff line number Diff line
@@ -171,11 +171,6 @@ size_t String16::size() const
    return SharedBuffer::sizeFromData(mString)/sizeof(char16_t)-1;
}

const SharedBuffer* String16::sharedBuffer() const
{
    return SharedBuffer::bufferFromData(mString);
}

void String16::setTo(const String16& other)
{
    SharedBuffer::bufferFromData(other.mString)->acquire();
+0 −5
Original line number Diff line number Diff line
@@ -217,11 +217,6 @@ size_t String8::length() const
    return SharedBuffer::sizeFromData(mString)-1;
}

const SharedBuffer* String8::sharedBuffer() const
{
    return SharedBuffer::bufferFromData(mString);
}

String8 String8::format(const char* fmt, ...)
{
    va_list args;