diff options
author | Dave Chapman <dave@dchapman.com> | 2007-05-03 19:57:35 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-05-03 19:57:35 +0000 |
commit | 39939bb137bea1c149db5ff0edb1dd0dd1d3d596 (patch) | |
tree | 1f67fe15f406f2ee141d289505e151c1615a2e60 /rbutil/sansapatcher | |
parent | f097e13759f4033182388d369c3e0dc91497a00b (diff) | |
download | rockbox-39939bb137bea1c149db5ff0edb1dd0dd1d3d596.tar.gz 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.c | 36 |
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) { | |||
58 | #define MAX_SECTOR_SIZE 2048 | 58 | #define MAX_SECTOR_SIZE 2048 |
59 | #define SECTOR_SIZE 512 | 59 | #define SECTOR_SIZE 512 |
60 | 60 | ||
61 | unsigned short static inline le2ushort(unsigned char* buf) | ||
62 | { | ||
63 | unsigned short res = (buf[1] << 8) | buf[0]; | ||
64 | |||
65 | return res; | ||
66 | } | ||
67 | |||
68 | int static inline le2int(unsigned char* buf) | 61 | int static inline le2int(unsigned char* buf) |
69 | { | 62 | { |
70 | int32_t res = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; | 63 | 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) | |||
72 | return res; | 65 | return res; |
73 | } | 66 | } |
74 | 67 | ||
75 | int static inline be2int(unsigned char* buf) | ||
76 | { | ||
77 | int32_t res = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; | ||
78 | |||
79 | return res; | ||
80 | } | ||
81 | |||
82 | int static inline getint16le(char* buf) | ||
83 | { | ||
84 | int16_t res = (buf[1] << 8) | buf[0]; | ||
85 | |||
86 | return res; | ||
87 | } | ||
88 | |||
89 | void static inline short2le(unsigned short val, unsigned char* addr) | ||
90 | { | ||
91 | addr[0] = val & 0xFF; | ||
92 | addr[1] = (val >> 8) & 0xff; | ||
93 | } | ||
94 | |||
95 | void static inline int2le(unsigned int val, unsigned char* addr) | 68 | void static inline int2le(unsigned int val, unsigned char* addr) |
96 | { | 69 | { |
97 | addr[0] = val & 0xFF; | 70 | addr[0] = val & 0xFF; |
@@ -100,15 +73,6 @@ void static inline int2le(unsigned int val, unsigned char* addr) | |||
100 | addr[3] = (val >> 24) & 0xff; | 73 | addr[3] = (val >> 24) & 0xff; |
101 | } | 74 | } |
102 | 75 | ||
103 | void int2be(unsigned int val, unsigned char* addr) | ||
104 | { | ||
105 | addr[0] = (val >> 24) & 0xff; | ||
106 | addr[1] = (val >> 16) & 0xff; | ||
107 | addr[2] = (val >> 8) & 0xff; | ||
108 | addr[3] = val & 0xFF; | ||
109 | } | ||
110 | |||
111 | |||
112 | #define BYTES2INT32(array,pos)\ | 76 | #define BYTES2INT32(array,pos)\ |
113 | ((long)array[pos] | ((long)array[pos+1] << 8 ) |\ | 77 | ((long)array[pos] | ((long)array[pos+1] << 8 ) |\ |
114 | ((long)array[pos+2] << 16 ) | ((long)array[pos+3] << 24 )) | 78 | ((long)array[pos+2] << 16 ) | ((long)array[pos+3] << 24 )) |