mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
DynamicLoader: Remove the unused load_regions vector
This commit is contained in:
parent
e891f13c84
commit
f412e73bba
1 changed files with 0 additions and 3 deletions
|
@ -347,7 +347,6 @@ void DynamicLoader::load_program_headers()
|
|||
// (symbol tables/relocation information, executable instructions, read-only data)
|
||||
// and one of which is copied (modifiable data).
|
||||
// These are allocated in-line to cut down on the malloc calls.
|
||||
Vector<ProgramHeaderRegion, 4> load_regions;
|
||||
Vector<ProgramHeaderRegion, 3> map_regions;
|
||||
Vector<ProgramHeaderRegion, 1> copy_regions;
|
||||
Optional<ProgramHeaderRegion> relro_region;
|
||||
|
@ -362,7 +361,6 @@ void DynamicLoader::load_program_headers()
|
|||
} else if (region.is_load()) {
|
||||
if (region.size_in_memory() == 0)
|
||||
return;
|
||||
load_regions.append(region);
|
||||
if (region.is_writable()) {
|
||||
copy_regions.append(region);
|
||||
} else {
|
||||
|
@ -382,7 +380,6 @@ void DynamicLoader::load_program_headers()
|
|||
return a.desired_load_address().as_ptr() < b.desired_load_address().as_ptr();
|
||||
};
|
||||
|
||||
quick_sort(load_regions, compare_load_address);
|
||||
quick_sort(map_regions, compare_load_address);
|
||||
quick_sort(copy_regions, compare_load_address);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue