diff options
author | Steven Moreland <smoreland@google.com> | 2020-02-10 13:56:44 -0800 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2020-02-10 13:56:44 -0800 |
commit | 727a6dd5f533fd823d48d60f0752273aa5dd5ae0 (patch) | |
tree | 79281bd09c6d221ef5344fb80c151eb9b25de7d0 /libutils/String16.cpp | |
parent | 8c2d4d6146c85b8ac1aea58d06ccb763d0b3a4db (diff) |
String*: remove 'StaticLinkage' constructor
Unneeded.
Bug: N/A
Test: N/A
Change-Id: I3ff473d1e2fec98e47abd8abb45dd36e0a808170
Diffstat (limited to 'libutils/String16.cpp')
-rw-r--r-- | libutils/String16.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libutils/String16.cpp b/libutils/String16.cpp index e2a8c59a0..d514f29fb 100644 --- a/libutils/String16.cpp +++ b/libutils/String16.cpp @@ -90,19 +90,6 @@ String16::String16() { } -String16::String16(StaticLinkage) - : mString(nullptr) -{ - // this constructor is used when we can't rely on the static-initializers - // having run. In this case we always allocate an empty string. It's less - // efficient than using getEmptyString(), but we assume it's uncommon. - - SharedBuffer* buf = static_cast<SharedBuffer*>(alloc(sizeof(char16_t))); - char16_t* data = static_cast<char16_t*>(buf->data()); - data[0] = 0; - mString = data; -} - String16::String16(const String16& o) : mString(o.mString) { |