From 8a2aa076ee63f49de0f1248082d983e306d08163 Mon Sep 17 00:00:00 2001 From: Folkert Date: Sun, 4 Sep 2022 16:56:37 +0200 Subject: [PATCH] cleanup --- crates/linker/src/generate_dylib/elf64.rs | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/crates/linker/src/generate_dylib/elf64.rs b/crates/linker/src/generate_dylib/elf64.rs index fe7a8592d8..5424e340ee 100644 --- a/crates/linker/src/generate_dylib/elf64.rs +++ b/crates/linker/src/generate_dylib/elf64.rs @@ -1,19 +1,5 @@ use object::{elf, Endianness}; -pub const fn round_up_to_alignment(width: usize, alignment: usize) -> usize { - match alignment { - 0 => width, - 1 => width, - _ => { - if width % alignment > 0 { - width + alignment - (width % alignment) - } else { - width - } - } - } -} - pub fn create_dylib_elf64(custom_names: &[String]) -> object::read::Result> { let endian = Endianness::Little; @@ -44,8 +30,6 @@ pub fn create_dylib_elf64(custom_names: &[String]) -> object::read::Result object::read::Result