Removed an used method from profile compilation info
Bug: 139884006
Test: m
Change-Id: I0e9b09e2ba8e201a2034699b9463eed03e5db8c4
diff --git a/libprofile/profile/profile_compilation_info.cc b/libprofile/profile/profile_compilation_info.cc
index 6a681a5..013d5cf 100644
--- a/libprofile/profile/profile_compilation_info.cc
+++ b/libprofile/profile/profile_compilation_info.cc
@@ -1699,35 +1699,6 @@
return true;
}
-std::set<DexCacheResolvedClasses> ProfileCompilationInfo::GetResolvedClasses(
- const std::vector<const DexFile*>& dex_files) const {
- std::unordered_map<std::string, const DexFile* > key_to_dex_file;
- for (const DexFile* dex_file : dex_files) {
- key_to_dex_file.emplace(GetProfileDexFileKey(dex_file->GetLocation()), dex_file);
- }
- std::set<DexCacheResolvedClasses> ret;
- for (const DexFileData* dex_data : info_) {
- const auto it = key_to_dex_file.find(dex_data->profile_key);
- if (it != key_to_dex_file.end()) {
- const DexFile* dex_file = it->second;
- const std::string& dex_location = dex_file->GetLocation();
- if (dex_data->checksum != it->second->GetLocationChecksum()) {
- LOG(ERROR) << "Dex checksum mismatch when getting resolved classes from profile for "
- << "location " << dex_location << " (checksum=" << dex_file->GetLocationChecksum()
- << ", profile checksum=" << dex_data->checksum;
- return std::set<DexCacheResolvedClasses>();
- }
- DexCacheResolvedClasses classes(dex_location,
- dex_location,
- dex_data->checksum,
- dex_data->num_method_ids);
- classes.AddClasses(dex_data->class_set.begin(), dex_data->class_set.end());
- ret.insert(classes);
- }
- }
- return ret;
-}
-
// Naive implementation to generate a random profile file suitable for testing.
bool ProfileCompilationInfo::GenerateTestProfile(int fd,
uint16_t number_of_dex_files,
diff --git a/libprofile/profile/profile_compilation_info.h b/libprofile/profile/profile_compilation_info.h
index edf6e7a..55be2b6 100644
--- a/libprofile/profile/profile_compilation_info.h
+++ b/libprofile/profile/profile_compilation_info.h
@@ -411,10 +411,6 @@
// Perform an equality test with the `other` profile information.
bool Equals(const ProfileCompilationInfo& other);
- // Return the class descriptors for all of the classes in the profiles' class sets.
- std::set<DexCacheResolvedClasses> GetResolvedClasses(
- const std::vector<const DexFile*>& dex_files_) const;
-
// Return the profile key associated with the given dex location.
std::string GetProfileDexFileKey(const std::string& dex_location) const;
// Return the base profile key associated with the given dex location. The base profile key