summaryrefslogtreecommitdiff
path: root/libutils
diff options
context:
space:
mode:
authorSergio Giro <sgiro@google.com>2015-09-30 15:28:30 +0100
committerSergio Giro <sgiro@google.com>2015-09-30 15:42:02 +0100
commit282efae9c3d14ca2641e5fea223cb1be204feff1 (patch)
tree4c2dfa576e743d3cf7780c017ca9757a95a2e1a2 /libutils
parentfca4821e05f1d4684185b559d177ffde6937bf61 (diff)
system/core: remove methods returning SharedBuffer in String8, String16
Towards deprecation of SharedBuffer Change-Id: I3069837db32837bcc0f5d8f1118ccd502c9070dc
Diffstat (limited to 'libutils')
-rw-r--r--libutils/String16.cpp5
-rw-r--r--libutils/String8.cpp5
2 files changed, 0 insertions, 10 deletions
diff --git a/libutils/String16.cpp b/libutils/String16.cpp
index 67be9d8fa..6a5273ff2 100644
--- a/libutils/String16.cpp
+++ b/libutils/String16.cpp
@@ -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();
diff --git a/libutils/String8.cpp b/libutils/String8.cpp
index 5e8552049..81bfccf79 100644
--- a/libutils/String8.cpp
+++ b/libutils/String8.cpp
@@ -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;