summaryrefslogtreecommitdiffstats
path: root/compiler/dex/dex_to_dex_compiler.cc
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2013-12-11 11:16:03 +0100
committerSebastien Hertz <shertz@google.com>2013-12-11 11:16:03 +0100
commit1ebe2173d9c6144da16fd6c8790d14bcc9b38fa0 (patch)
treeae42004855401c5e9a708884de04eb74f45f6f2e /compiler/dex/dex_to_dex_compiler.cc
parent315ab6c077c4db2031f1ffa40b78722d8269dc9b (diff)
downloadandroid_art-1ebe2173d9c6144da16fd6c8790d14bcc9b38fa0.tar.gz
android_art-1ebe2173d9c6144da16fd6c8790d14bcc9b38fa0.tar.bz2
android_art-1ebe2173d9c6144da16fd6c8790d14bcc9b38fa0.zip
Remove unused method in DEX-to-DEX.
Change-Id: Ice5f91b45a0ad85576475a613193f143fd76ad9f
Diffstat (limited to 'compiler/dex/dex_to_dex_compiler.cc')
-rw-r--r--compiler/dex/dex_to_dex_compiler.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/dex/dex_to_dex_compiler.cc b/compiler/dex/dex_to_dex_compiler.cc
index abafbc5830..3368132a0e 100644
--- a/compiler/dex/dex_to_dex_compiler.cc
+++ b/compiler/dex/dex_to_dex_compiler.cc
@@ -52,12 +52,6 @@ class DexCompiler {
return *unit_.GetDexFile();
}
- // TODO: since the whole compilation pipeline uses a "const DexFile", we need
- // to "unconst" here. The DEX-to-DEX compiler should work on a non-const DexFile.
- DexFile& GetModifiableDexFile() {
- return *const_cast<DexFile*>(unit_.GetDexFile());
- }
-
bool PerformOptimizations() const {
return dex_to_dex_compilation_level_ >= kOptimize;
}