summaryrefslogtreecommitdiff
path: root/src/model/section-by-type.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/section-by-type.c')
-rw-r--r--src/model/section-by-type.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/model/section-by-type.c b/src/model/section-by-type.c
deleted file mode 100644
index e36865a..0000000
--- a/src/model/section-by-type.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <assert.h>
-#include <libelf/gelf.h>
-#include <libelfu/libelfu.h>
-
-
-/*
- * Returns the first section with the given type.
- */
-ElfuScn* elfu_mScnByType(ElfuElf *me, Elf32_Word type)
-{
- ElfuScn *ms;
-
- assert(me);
-
- CIRCLEQ_FOREACH(ms, &me->scnList, elem) {
- if (ms->shdr.sh_type == type) {
- return ms;
- }
- }
-
- return NULL;
-}