summaryrefslogtreecommitdiff
path: root/runtime/utils.cc
diff options
context:
space:
mode:
author David Sehr <sehr@google.com> 2018-01-23 16:11:38 -0800
committer David Sehr <sehr@google.com> 2018-01-24 09:24:29 -0800
commit8c0961f9e061ee4b04c1c4ba8ad5cca13bcf884d (patch)
treef6e5a970a6bcc0935e150cb6c28a520bf31ba964 /runtime/utils.cc
parent2b1a21ed3581f77f34d582507177ebce33565534 (diff)
Move missed files to libdexfile
Reduce the dependencies on utf and utils in preparation for separate directory. Bug: 22322814 Test: make -j 50 test-art-host make -j 50 dexdump2 dexlist Change-Id: Icdecf895dafec63ef903514eef79d459abc14925
Diffstat (limited to 'runtime/utils.cc')
-rw-r--r--runtime/utils.cc36
1 files changed, 0 insertions, 36 deletions
diff --git a/runtime/utils.cc b/runtime/utils.cc
index 79ddcb9bff..b2ec669f32 100644
--- a/runtime/utils.cc
+++ b/runtime/utils.cc
@@ -30,7 +30,6 @@
#include "android-base/stringprintf.h"
#include "android-base/strings.h"
-#include "dex/dex_file-inl.h"
#include "os.h"
#include "utf-inl.h"
@@ -126,41 +125,6 @@ std::string PrettyDescriptor(const char* descriptor) {
return result;
}
-std::string PrettyJavaAccessFlags(uint32_t access_flags) {
- std::string result;
- if ((access_flags & kAccPublic) != 0) {
- result += "public ";
- }
- if ((access_flags & kAccProtected) != 0) {
- result += "protected ";
- }
- if ((access_flags & kAccPrivate) != 0) {
- result += "private ";
- }
- if ((access_flags & kAccFinal) != 0) {
- result += "final ";
- }
- if ((access_flags & kAccStatic) != 0) {
- result += "static ";
- }
- if ((access_flags & kAccAbstract) != 0) {
- result += "abstract ";
- }
- if ((access_flags & kAccInterface) != 0) {
- result += "interface ";
- }
- if ((access_flags & kAccTransient) != 0) {
- result += "transient ";
- }
- if ((access_flags & kAccVolatile) != 0) {
- result += "volatile ";
- }
- if ((access_flags & kAccSynchronized) != 0) {
- result += "synchronized ";
- }
- return result;
-}
-
std::string PrettySize(int64_t byte_count) {
// The byte thresholds at which we display amounts. A byte count is displayed
// in unit U when kUnitThresholds[U] <= bytes < kUnitThresholds[U+1].