diff options
Diffstat (limited to 'src/common_test.h')
-rw-r--r-- | src/common_test.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/common_test.h b/src/common_test.h index c55ef7f..f2a18e5 100644 --- a/src/common_test.h +++ b/src/common_test.h @@ -282,31 +282,6 @@ class CommonTest : public testing::Test { return DexFile::Open(libcore_dex_file_name, ""); } - uint32_t FindTypeIdxByDescriptor(const DexFile& dex_file, const StringPiece& descriptor) { - for (size_t i = 0; i < dex_file.NumTypeIds(); i++) { - const DexFile::TypeId& type_id = dex_file.GetTypeId(i); - if (descriptor == dex_file.GetTypeDescriptor(type_id)) { - return i; - } - } - CHECK(false) << "Failed to find type index for " << descriptor; - return 0; - } - - uint32_t FindFieldIdxByDescriptorAndName(const DexFile& dex_file, - const StringPiece& class_descriptor, - const StringPiece& field_name) { - for (size_t i = 0; i < dex_file.NumFieldIds(); i++) { - const DexFile::FieldId& field_id = dex_file.GetFieldId(i); - if (class_descriptor == dex_file.GetFieldDeclaringClassDescriptor(field_id) - && field_name == dex_file.GetFieldName(field_id)) { - return i; - } - } - CHECK(false) << "Failed to find field index for " << class_descriptor << " " << field_name; - return 0; - } - const DexFile* OpenTestDexFile(const char* name) { CHECK(name != NULL); std::string filename; |