mirror of
https://github.com/devkitPro/wut.git
synced 2026-09-30 05:54:29 -05:00
elf2rpl: Remove unused functions.
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user