From 39939bb137bea1c149db5ff0edb1dd0dd1d3d596 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 3 May 2007 19:57:35 +0000 Subject: Remove some unused functions, no functional change git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13314 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/sansapatcher/sansapatcher.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/rbutil/sansapatcher/sansapatcher.c b/rbutil/sansapatcher/sansapatcher.c index 8f50459f36..2081e396c2 100644 --- a/rbutil/sansapatcher/sansapatcher.c +++ b/rbutil/sansapatcher/sansapatcher.c @@ -58,13 +58,6 @@ static off_t filesize(int fd) { #define MAX_SECTOR_SIZE 2048 #define SECTOR_SIZE 512 -unsigned short static inline le2ushort(unsigned char* buf) -{ - unsigned short res = (buf[1] << 8) | buf[0]; - - return res; -} - int static inline le2int(unsigned char* buf) { int32_t res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; @@ -72,26 +65,6 @@ int static inline le2int(unsigned char* buf) return res; } -int static inline be2int(unsigned char* buf) -{ - int32_t res = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; - - return res; -} - -int static inline getint16le(char* buf) -{ - int16_t res = (buf[1] << 8) | buf[0]; - - return res; -} - -void static inline short2le(unsigned short val, unsigned char* addr) -{ - addr[0] = val & 0xFF; - addr[1] = (val >> 8) & 0xff; -} - void static inline int2le(unsigned int val, unsigned char* addr) { addr[0] = val & 0xFF; @@ -100,15 +73,6 @@ void static inline int2le(unsigned int val, unsigned char* addr) addr[3] = (val >> 24) & 0xff; } -void int2be(unsigned int val, unsigned char* addr) -{ - addr[0] = (val >> 24) & 0xff; - addr[1] = (val >> 16) & 0xff; - addr[2] = (val >> 8) & 0xff; - addr[3] = val & 0xFF; -} - - #define BYTES2INT32(array,pos)\ ((long)array[pos] | ((long)array[pos+1] << 8 ) |\ ((long)array[pos+2] << 16 ) | ((long)array[pos+3] << 24 )) -- cgit v1.2.3