diff options
author | 2023-04-05 04:34:29 +0000 | |
---|---|---|
committer | 2023-04-05 04:34:29 +0000 | |
commit | a5e75c5bc2db1a8123aa9e73d3ad1e3b4d2e68d8 (patch) | |
tree | 241bcfc35bfcaa0ba7a30448903cfb2f1cc8fd6a /tools/aapt2/ResourceValues.cpp | |
parent | f24b9a438d4246607d14eaa04d405c089cb758db (diff) |
Revert "Add additional check on float precision after parsing, only compile the"
This reverts commit f24b9a438d4246607d14eaa04d405c089cb758db.
Reason for revert: https://buganizer.corp.google.com/issues/276936463#comment4 please check
Change-Id: Ia3c2d1a18fd320d0d4eea4643ce917676d093532
Diffstat (limited to 'tools/aapt2/ResourceValues.cpp')
-rw-r--r-- | tools/aapt2/ResourceValues.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/tools/aapt2/ResourceValues.cpp b/tools/aapt2/ResourceValues.cpp index 728e35a266b7..a5754e0d168f 100644 --- a/tools/aapt2/ResourceValues.cpp +++ b/tools/aapt2/ResourceValues.cpp @@ -22,12 +22,12 @@ #include <set> #include <sstream> +#include "android-base/stringprintf.h" +#include "androidfw/ResourceTypes.h" + #include "Resource.h" #include "ResourceUtils.h" #include "ValueVisitor.h" -#include "android-base/stringprintf.h" -#include "androidfw/ResourceTypes.h" -#include "io/StringStream.h" #include "util/Util.h" using ::aapt::text::Printer; @@ -487,15 +487,6 @@ void BinaryPrimitive::PrettyPrint(Printer* printer) const { } } -std::string BinaryPrimitive::toPrettyString() const { - std::string str; - io::StringOutputStream out(&str); - text::Printer printer(&out); - this->PrettyPrint(&printer); - out.Flush(); - return str; -} - Attribute::Attribute(uint32_t t) : type_mask(t), min_int(std::numeric_limits<int32_t>::min()), |