From a5e75c5bc2db1a8123aa9e73d3ad1e3b4d2e68d8 Mon Sep 17 00:00:00 2001 From: Shivakumar Neginal Date: Wed, 5 Apr 2023 04:34:29 +0000 Subject: 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 --- tools/aapt2/ResourceValues.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'tools/aapt2/ResourceValues.cpp') 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 #include +#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::min()), -- cgit v1.2.3-59-g8ed1b