Simplify dex::Verify call
We always pass dex_file->{Begin,End} as the range,
so remove the arguments and use the provided dex_file.
Bug: 266950186
Test: test.py -b --host --optimizing --64
Change-Id: I2361b1b4d9c9fafd180b2cab98c272847383c361
diff --git a/libdexfile/dex/dex_file_loader.cc b/libdexfile/dex/dex_file_loader.cc
index 5d5cd4c..bd5863a 100644
--- a/libdexfile/dex/dex_file_loader.cc
+++ b/libdexfile/dex/dex_file_loader.cc
@@ -380,12 +380,7 @@
// NB: Dex verifier does not understand the compact dex format.
if (verify && !dex_file->IsCompactDexFile()) {
ScopedTrace trace(std::string("Verify dex file ") + location);
- if (!dex::Verify(dex_file.get(),
- dex_file->Begin(),
- dex_file->Size(),
- location.c_str(),
- verify_checksum,
- error_msg)) {
+ if (!dex::Verify(dex_file.get(), location.c_str(), verify_checksum, error_msg)) {
if (error_code != nullptr) {
*error_code = DexFileLoaderErrorCode::kVerifyError;
}