diff --git a/tools/elf2rpl/main.cpp b/tools/elf2rpl/main.cpp index 8acd207..741fc59 100644 --- a/tools/elf2rpl/main.cpp +++ b/tools/elf2rpl/main.cpp @@ -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 -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. */