diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-17 17:20:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-17 17:20:35 +0100 |
commit | 87c51f9b75198503633bc30f40b73f40a40fc72d (patch) | |
tree | 1a3a7210a3a26fecc99ffdb0207814331befb4ae /registry | |
parent | f7bd3531cca1fc6cde8a3b2be65d29bf71c44feb (diff) |
Remove dead code
Change-Id: I1edce9e336650cc3317de8883e08fb6536c58c70
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/reflcnst.hxx | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/registry/source/reflcnst.hxx b/registry/source/reflcnst.hxx index e9e39449a4b1..e08da94a5566 100644 --- a/registry/source/reflcnst.hxx +++ b/registry/source/reflcnst.hxx @@ -106,13 +106,6 @@ inline sal_uInt32 writeBYTE(sal_uInt8* buffer, sal_uInt8 v) return sizeof(sal_uInt8); } -inline sal_uInt16 readBYTE(const sal_uInt8* buffer, sal_uInt8& v) -{ - v = buffer[0]; - - return sizeof(sal_uInt8); -} - inline sal_uInt32 writeINT16(sal_uInt8* buffer, sal_Int16 v) { buffer[0] = (sal_uInt8)((v >> 8) & 0xFF); @@ -121,13 +114,6 @@ inline sal_uInt32 writeINT16(sal_uInt8* buffer, sal_Int16 v) return sizeof(sal_Int16); } -inline sal_uInt32 readINT16(const sal_uInt8* buffer, sal_Int16& v) -{ - v = ((buffer[0] << 8) | (buffer[1] << 0)); - - return sizeof(sal_Int16); -} - inline sal_uInt32 writeUINT16(sal_uInt8* buffer, sal_uInt16 v) { buffer[0] = (sal_uInt8)((v >> 8) & 0xFF); @@ -206,22 +192,6 @@ inline sal_uInt32 writeINT64(sal_uInt8* buffer, sal_Int64 v) return sizeof(sal_Int64); } -inline sal_uInt32 readINT64(const sal_uInt8* buffer, sal_Int64& v) -{ - v = ( - ((sal_Int64)buffer[0] << 56) | - ((sal_Int64)buffer[1] << 48) | - ((sal_Int64)buffer[2] << 40) | - ((sal_Int64)buffer[3] << 32) | - ((sal_Int64)buffer[4] << 24) | - ((sal_Int64)buffer[5] << 16) | - ((sal_Int64)buffer[6] << 8) | - ((sal_Int64)buffer[7] << 0) - ); - - return sizeof(sal_Int64); -} - inline sal_uInt32 writeUINT64(sal_uInt8* buffer, sal_uInt64 v) { buffer[0] = (sal_uInt8)((v >> 56) & 0xFF); @@ -236,22 +206,6 @@ inline sal_uInt32 writeUINT64(sal_uInt8* buffer, sal_uInt64 v) return sizeof(sal_uInt64); } -inline sal_uInt32 readUINT64(const sal_uInt8* buffer, sal_uInt64& v) -{ - v = ( - ((sal_uInt64)buffer[0] << 56) | - ((sal_uInt64)buffer[1] << 48) | - ((sal_uInt64)buffer[2] << 40) | - ((sal_uInt64)buffer[3] << 32) | - ((sal_uInt64)buffer[4] << 24) | - ((sal_uInt64)buffer[5] << 16) | - ((sal_uInt64)buffer[6] << 8) | - ((sal_uInt64)buffer[7] << 0) - ); - - return sizeof(sal_uInt64); -} - inline sal_uInt32 writeUtf8(sal_uInt8* buffer, const sal_Char* v) { sal_uInt32 size = strlen(v) + 1; |