Drop String8::std_string
This method was preserved under assumption it would be baked into many prebuilts, but since it's inline, there should be no linkage to libutils - thus, should be safe to remove anyway. Bug: 35363681 Bug: 295394788 Test: treehugger Change-Id: I59964935600e9e786424136177bfc8a70bebec67
This commit is contained in:
parent
cc64ed9865
commit
adaf33026a
2 changed files with 0 additions and 17 deletions
|
@ -56,9 +56,6 @@ public:
|
|||
inline const char16_t* c_str() const;
|
||||
inline const char16_t* string() const;
|
||||
|
||||
private:
|
||||
static inline std::string std_string(const String16& str);
|
||||
public:
|
||||
size_t size() const;
|
||||
inline bool empty() const;
|
||||
|
||||
|
@ -249,11 +246,6 @@ inline const char16_t* String16::string() const
|
|||
return mString;
|
||||
}
|
||||
|
||||
inline std::string String16::std_string(const String16& str)
|
||||
{
|
||||
return std::string(String8(str).c_str());
|
||||
}
|
||||
|
||||
inline bool String16::empty() const
|
||||
{
|
||||
return length() == 0;
|
||||
|
|
|
@ -58,10 +58,6 @@ public:
|
|||
inline const char* c_str() const;
|
||||
inline const char* string() const;
|
||||
|
||||
private:
|
||||
static inline std::string std_string(const String8& str);
|
||||
public:
|
||||
|
||||
inline size_t size() const;
|
||||
inline size_t bytes() const;
|
||||
inline bool empty() const;
|
||||
|
@ -169,11 +165,6 @@ inline const char* String8::string() const
|
|||
return mString;
|
||||
}
|
||||
|
||||
inline std::string String8::std_string(const String8& str)
|
||||
{
|
||||
return std::string(str.c_str());
|
||||
}
|
||||
|
||||
inline size_t String8::size() const
|
||||
{
|
||||
return length();
|
||||
|
|
Loading…
Reference in a new issue