diff options
| author | 2019-02-15 17:39:58 +0000 | |
|---|---|---|
| committer | 2019-02-15 14:37:45 -0800 | |
| commit | 90b7a08aaf189824ec89c99063ae73c0de69fcdf (patch) | |
| tree | f9bb4c92a8df6d34a827348335bf0edf52e4a38f /tools/aapt2/StringPool.h | |
| parent | 29405ed8c501f50247e7e4012b6da80bf51eb3b1 (diff) | |
Revert "Fix loaded apk string pool order"
This reverts commit 4e9a922ede24f7f7bfe793321f7328623ee2a061.
Reason for revert: <b/122518436>
Change-Id: I3650b2c6c9bdfa69a3034f9ca49e95a9698c3cdd
Diffstat (limited to 'tools/aapt2/StringPool.h')
| -rw-r--r-- | tools/aapt2/StringPool.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/aapt2/StringPool.h b/tools/aapt2/StringPool.h index 115d5d315b8f..1006ca970dc5 100644 --- a/tools/aapt2/StringPool.h +++ b/tools/aapt2/StringPool.h @@ -166,8 +166,7 @@ class StringPool { // Adds a string to the pool, unless it already exists, with a context object that can be used // when sorting the string pool. Returns a reference to the string in the pool. - Ref MakeRef(const android::StringPiece& str, const Context& context, - Maybe<size_t> index = {}); + Ref MakeRef(const android::StringPiece& str, const Context& context); // Adds a string from another string pool. Returns a reference to the string in the string pool. Ref MakeRef(const Ref& ref); @@ -211,8 +210,7 @@ class StringPool { static bool Flatten(BigBuffer* out, const StringPool& pool, bool utf8, IDiagnostics* diag); - Ref MakeRefImpl(const android::StringPiece& str, const Context& context, bool unique, - Maybe<size_t> index = {}); + Ref MakeRefImpl(const android::StringPiece& str, const Context& context, bool unique); void ReAssignIndices(); std::vector<std::unique_ptr<Entry>> strings_; |