From e52affa9d5c172e8e72dbe48774e640b92aac05f Mon Sep 17 00:00:00 2001 From: James Benton Date: Wed, 30 May 2018 22:51:51 +0100 Subject: [PATCH] elf2rpl: Remove unused functions. --- tools/elf2rpl/main.cpp | 21 --------------------- 1 file changed, 21 deletions(-) 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. */