elf2rpl: Remove unused functions.

This commit is contained in:
James Benton 2018-05-30 22:51:51 +01:00
parent 6a116a8e41
commit e52affa9d5

View File

@ -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. * Read the .elf file generated by compiler.
*/ */