summaryrefslogtreecommitdiffstats
path: root/rbutil/sansapatcher
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-05-03 19:57:35 +0000
committerDave Chapman <dave@dchapman.com>2007-05-03 19:57:35 +0000
commit39939bb137bea1c149db5ff0edb1dd0dd1d3d596 (patch)
tree1f67fe15f406f2ee141d289505e151c1615a2e60 /rbutil/sansapatcher
parentf097e13759f4033182388d369c3e0dc91497a00b (diff)
downloadrockbox-39939bb137bea1c149db5ff0edb1dd0dd1d3d596.tar.gz
rockbox-39939bb137bea1c149db5ff0edb1dd0dd1d3d596.tar.bz2
rockbox-39939bb137bea1c149db5ff0edb1dd0dd1d3d596.zip
Remove some unused functions, no functional change
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13314 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/sansapatcher')
-rw-r--r--rbutil/sansapatcher/sansapatcher.c36
1 files changed, 0 insertions, 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 ))