diff options
Diffstat (limited to 'libutils/String8.cpp')
-rw-r--r-- | libutils/String8.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libutils/String8.cpp b/libutils/String8.cpp index d13548e4c..d00e39c56 100644 --- a/libutils/String8.cpp +++ b/libutils/String8.cpp @@ -125,19 +125,6 @@ String8::String8() { } -String8::String8(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. - - char* data = static_cast<char*>( - SharedBuffer::alloc(sizeof(char))->data()); - data[0] = 0; - mString = data; -} - String8::String8(const String8& o) : mString(o.mString) { |