registry/source/reflcnst.hxx | 46 ------------------------------------------- 1 file changed, 46 deletions(-)
New commits: commit 87c51f9b75198503633bc30f40b73f40a40fc72d Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Nov 17 17:20:35 2014 +0100 Remove dead code Change-Id: I1edce9e336650cc3317de8883e08fb6536c58c70 diff --git a/registry/source/reflcnst.hxx b/registry/source/reflcnst.hxx index e9e3944..e08da94 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits