GP-1996 - code refactor to make op new and delete discovery more generic.

This commit is contained in:
ghidra007 2022-05-26 22:12:07 +00:00
parent 864321a060
commit d8396e7592
5 changed files with 458 additions and 438 deletions

View file

@ -847,28 +847,6 @@ public class ExtendedFlatProgramAPI extends FlatProgramAPI {
return pdt;
}
/**
* Method to retrieve the minimum address on the given list
* @param list the list of addresses
* @return the minimum address on the given list
*/
public Address getMinimumAddressOnList(List<Address> list) {
Collections.sort(list);
return list.get(0);
}
/**
* Method to retrieve the maximum address on the given list
* @param list the list of addresses
* @return the maximum address on the given list
*/
public Address getMaximumAddressOnList(List<Address> list) {
Collections.sort(list, Collections.reverseOrder());
return list.get(0);
}
/**
* Method to retrieve the referenced Functions from the given referenceToClassMap
* @param referenceToClassMap map of addresses that contain a reference to either a vftable or