diff options
author | 2021-02-25 15:41:33 +0000 | |
---|---|---|
committer | 2021-04-28 08:11:45 +0000 | |
commit | 1dab575cd635706f03d510763cb4ea1b115a2cee (patch) | |
tree | cc885f34c0c4c139e9095ee840e3936662243581 /runtime/class_table-inl.h | |
parent | 854725b10087bfe86b5a794093e88786ff7b9f28 (diff) |
Remove some dead code around ClassTable.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 175869411
Change-Id: Ifb3ac102129470aff6eb228e5523b240c113818f
Diffstat (limited to 'runtime/class_table-inl.h')
-rw-r--r-- | runtime/class_table-inl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/class_table-inl.h b/runtime/class_table-inl.h index 3645b647c4..8e44ee3620 100644 --- a/runtime/class_table-inl.h +++ b/runtime/class_table-inl.h @@ -181,6 +181,13 @@ inline void ClassTable::RemoveStrongRoots(const Filter& filter) { strong_roots_.end()); } +inline ObjPtr<mirror::Class> ClassTable::LookupByDescriptor(ObjPtr<mirror::Class> klass) { + std::string temp; + const char* descriptor = klass->GetDescriptor(&temp); + uint32_t hash = TableSlot::HashDescriptor(klass); + return Lookup(descriptor, hash); +} + } // namespace art #endif // ART_RUNTIME_CLASS_TABLE_INL_H_ |