summaryrefslogtreecommitdiff
path: root/registry/source/reflwrit.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-10-01 08:05:58 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-10-01 08:05:58 +0000
commit4ca5c503bc36f0300bb3f3ec1577ed41df098ab2 (patch)
tree0e6a4a4fddafd0cafd18601f5345e371c7fe1f99 /registry/source/reflwrit.cxx
parentc490a9f0684dd5cc7efd897afbf70e2f73444f72 (diff)
CWS-TOOLING: integrate CWS jsc311
Diffstat (limited to 'registry/source/reflwrit.cxx')
-rw-r--r--registry/source/reflwrit.cxx50
1 files changed, 1 insertions, 49 deletions
diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx
index c1c8726a6306..218286820ed3 100644
--- a/registry/source/reflwrit.cxx
+++ b/registry/source/reflwrit.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: reflwrit.cxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.15.10.1 $
*
* This file is part of OpenOffice.org.
*
@@ -170,25 +170,6 @@ sal_uInt32 writeFloat(sal_uInt8* buffer, float v)
return sizeof(sal_uInt32);
}
-sal_uInt32 readFloat(const sal_uInt8* buffer, float& v)
-{
- union
- {
- float v;
- sal_uInt32 b;
- } x;
-
-#ifdef REGTYPE_IEEE_NATIVE
- readUINT32(buffer, x.b);
-#else
-# error no IEEE
-#endif
-
- v = x.v;
-
- return sizeof(sal_uInt32);
-}
-
sal_uInt32 writeDouble(sal_uInt8* buffer, double v)
{
union
@@ -218,35 +199,6 @@ sal_uInt32 writeDouble(sal_uInt8* buffer, double v)
return (sizeof(sal_uInt32) + sizeof(sal_uInt32));
}
-sal_uInt32 readDouble(const sal_uInt8* buffer, double& v)
-{
- union
- {
- double v;
- struct
- {
- sal_uInt32 b1;
- sal_uInt32 b2;
- } b;
- } x;
-
-#ifdef REGTYPE_IEEE_NATIVE
-# ifdef OSL_BIGENDIAN
- readUINT32(buffer, x.b.b1);
- readUINT32(buffer + sizeof(sal_uInt32), x.b.b2);
-# else
- readUINT32(buffer, x.b.b2);
- readUINT32(buffer + sizeof(sal_uInt32), x.b.b1);
-# endif
-#else
-# error no IEEE
-#endif
-
- v = x.v;
-
- return (sizeof(sal_uInt32) + sizeof(sal_uInt32));
-}
-
/**************************************************************************
buffer write functions