Remove an unused profile method
Bug: 139884006
Test: m test-art-host
Change-Id: I21cf0de4e5cc806f313003b6200ccddca083d552
diff --git a/libprofile/profile/profile_compilation_info.cc b/libprofile/profile/profile_compilation_info.cc
index 42b90f3..40fb778 100644
--- a/libprofile/profile/profile_compilation_info.cc
+++ b/libprofile/profile/profile_compilation_info.cc
@@ -1520,15 +1520,6 @@
: MethodHotness();
}
-ProfileCompilationInfo::MethodHotness ProfileCompilationInfo::GetMethodHotness(
- const std::string& dex_location,
- uint32_t dex_checksum,
- uint16_t dex_method_index) const {
- const DexFileData* dex_data = FindDexData(GetProfileDexFileKey(dex_location), dex_checksum);
- return dex_data != nullptr ? dex_data->GetHotnessInfo(dex_method_index) : MethodHotness();
-}
-
-
std::unique_ptr<ProfileCompilationInfo::OfflineProfileMethodInfo>
ProfileCompilationInfo::GetHotMethodInfo(const MethodReference& method_ref) const {
MethodHotness hotness(GetMethodHotness(method_ref));
diff --git a/libprofile/profile/profile_compilation_info.h b/libprofile/profile/profile_compilation_info.h
index 250dfa0..d2071f5 100644
--- a/libprofile/profile/profile_compilation_info.h
+++ b/libprofile/profile/profile_compilation_info.h
@@ -361,10 +361,7 @@
uint32_t GetNumberOfResolvedClasses() const;
// Returns the profile method info for a given method reference.
- MethodHotness GetMethodHotness(const MethodReference& method_ref) const;
- MethodHotness GetMethodHotness(const std::string& dex_location,
- uint32_t dex_checksum,
- uint16_t dex_method_index) const;
+ MethodHotness GetMethodHotness(const MethodReference& method_ref) const;;
// Return true if the class's type is present in the profiling info.
bool ContainsClass(const DexFile& dex_file, dex::TypeIndex type_idx) const;