summaryrefslogtreecommitdiff
path: root/runtime/class_table.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2016-01-23 14:16:58 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-01-23 14:16:58 +0000
commit5d5dbeb0344fa57f34cee40f01f96829eae4b514 (patch)
tree5e4a1f49fe8e59c105397b53da3a5a963a22a9ff /runtime/class_table.cc
parent01ebf4a0197ab221cb5af348607696458c5b927a (diff)
parent1bc977cf2f8199311a97f2ba9431a184540e3e9c (diff)
Merge "Revert "Load app images""
Diffstat (limited to 'runtime/class_table.cc')
-rw-r--r--runtime/class_table.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/runtime/class_table.cc b/runtime/class_table.cc
index 2a4f0e01af..df2dbf416c 100644
--- a/runtime/class_table.cc
+++ b/runtime/class_table.cc
@@ -40,16 +40,6 @@ bool ClassTable::Contains(mirror::Class* klass) {
return false;
}
-mirror::Class* ClassTable::LookupByDescriptor(mirror::Class* klass) {
- for (ClassSet& class_set : classes_) {
- auto it = class_set.Find(GcRoot<mirror::Class>(klass));
- if (it != class_set.end()) {
- return it->Read();
- }
- }
- return nullptr;
-}
-
mirror::Class* ClassTable::UpdateClass(const char* descriptor, mirror::Class* klass, size_t hash) {
// Should only be updating latest table.
auto existing_it = classes_.back().FindWithHash(descriptor, hash);
@@ -183,12 +173,4 @@ size_t ClassTable::ReadFromMemory(uint8_t* ptr) {
return read_count;
}
-void ClassTable::SetClassLoader(mirror::ClassLoader* class_loader) {
- for (const ClassSet& class_set : classes_) {
- for (const GcRoot<mirror::Class>& root : class_set) {
- root.Read()->SetClassLoader(class_loader);
- }
- }
-}
-
} // namespace art