From e49ab4d6d4f8226db09803458250f2b9f41abf43 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Tue, 10 Oct 2023 16:21:10 +0100 Subject: Remove size argument from DexFile constructors. We know the DEX size from the DEX header, and we know the range of valid underlying memory from DexFileContainer, so it is redundant. Test: ./art/test.py -b --host 001 Change-Id: I0bd0fe25797ead4df864d97a2bfa8608f75bd694 --- compiler/optimizing/optimizing_unit_test.h | 1 - 1 file changed, 1 deletion(-) (limited to 'compiler/optimizing/optimizing_unit_test.h') diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h index 2e05c41f01..77e6420df8 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h @@ -244,7 +244,6 @@ class OptimizingUnitTestHelper { auto container = std::make_shared(dex_data, sizeof(StandardDexFile::Header)); dex_files_.emplace_back(new StandardDexFile(dex_data, - sizeof(StandardDexFile::Header), "no_location", /*location_checksum*/ 0, /*oat_dex_file*/ nullptr, -- cgit v1.2.3-59-g8ed1b