shithub: rgbds

Download patch

ref: 69f79f8598bbadc0fdab065457fc671317e0cccf
parent: 573011a99ecd6e00959d89dc5ffd5c0095c55848
author: Antonio Niño Díaz <antonio_nd@outlook.com>
date: Fri Aug 17 20:19:48 EDT 2018

Remove unused str2int()

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>

--- a/src/asm/asmy.y
+++ b/src/asm/asmy.y
@@ -106,18 +106,6 @@
 	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;