summaryrefslogtreecommitdiff
path: root/libutils/String8.cpp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2020-02-10 13:56:44 -0800
committerSteven Moreland <smoreland@google.com>2020-02-10 13:56:44 -0800
commit727a6dd5f533fd823d48d60f0752273aa5dd5ae0 (patch)
tree79281bd09c6d221ef5344fb80c151eb9b25de7d0 /libutils/String8.cpp
parent8c2d4d6146c85b8ac1aea58d06ccb763d0b3a4db (diff)
String*: remove 'StaticLinkage' constructor
Unneeded. Bug: N/A Test: N/A Change-Id: I3ff473d1e2fec98e47abd8abb45dd36e0a808170
Diffstat (limited to 'libutils/String8.cpp')
-rw-r--r--libutils/String8.cpp13
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)
{