summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--registry/source/reflcnst.hxx46
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;