From 69f79f8598bbadc0fdab065457fc671317e0cccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Sat, 18 Aug 2018 00:19:48 +0100 Subject: [PATCH] Remove unused str2int() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Niño Díaz --- src/asm/asmy.y | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/asm/asmy.y b/src/asm/asmy.y index a6e5ec04..93d6dc8b 100644 --- a/src/asm/asmy.y +++ b/src/asm/asmy.y @@ -106,18 +106,6 @@ size_t symvaluetostring(char *dest, size_t maxLength, char *sym) return length; } -static uint32_t str2int(char *s) -{ - uint32_t r = 0; - - while (*s) { - r <<= 8; - r |= (uint8_t)(*s++); - } - - return r; -} - static uint32_t str2int2(char *s, int32_t length) { int32_t i;