diff options
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 539953a8c..70bf5a0fb 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) { |