mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 05:02:36 +01:00
elf2rpl: Remove unused functions.
This commit is contained in:
parent
6a116a8e41
commit
e52affa9d5
@ -58,27 +58,6 @@ getSectionByType(ElfFile &file, elf::SectionType type)
|
||||
}
|
||||
|
||||
|
||||
static ElfFile::Section *
|
||||
getSectionByName(ElfFile &file, const char *name)
|
||||
{
|
||||
auto index = getSectionIndex(file, name);
|
||||
if (index == -1) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return file.sections[index].get();
|
||||
}
|
||||
|
||||
|
||||
// https://stackoverflow.com/a/16569749
|
||||
template<class TContainer>
|
||||
bool begins_with(const TContainer& input, const TContainer& match)
|
||||
{
|
||||
return input.size() >= match.size()
|
||||
&& std::equal(match.begin(), match.end(), input.begin());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Read the .elf file generated by compiler.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user