On Wed, Feb 16, 2011 at 01:06:47PM +0000, Caolán McNamara wrote:
> On Wed, 2011-02-16 at 13:03 +0100, Francois Tigeot wrote:
> > On Wed, Feb 16, 2011 at 08:55:12AM +0000, Caolán McNamara wrote:
> > 
> > Are the UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS defines in
> > sal/inc/rtl/uuid.h a part of that ?
> > It looked completely bogus to me.
> 
> *shrug*, the comment on it makes a certain degree of sense, on the other
> hand I don't think there's any uses of it in the source.

I confirm there's no use of it anywhere.

The attached patch removes all remaining instances of
UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS .

-- 
Francois Tigeot
diff --git a/sal/inc/rtl/uuid.h b/sal/inc/rtl/uuid.h
index 7b52924..e79ce63 100644
--- a/sal/inc/rtl/uuid.h
+++ b/sal/inc/rtl/uuid.h
@@ -179,36 +179,6 @@ void SAL_CALL rtl_createNamedUuid(
       0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
     }
     
-
-/*
-    This macro must have a value below the system time resolution of the
-    system. The uuid routines use this value  as an upper limit for adding 
ticks to the
-    the predecessor time value if system times are equal.
- */
-#ifdef SAL_W32
-#define UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS 1000
-#elif defined SAL_OS2 // YD we use posix functions for time
-#define UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS 10
-#elif LINUX
-#define UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS 10
-#elif NETBSD
-#define UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS 10
-#elif FREEBSD
-#define UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS 10
-#elif SOLARIS
-#define UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS 10
-#elif MACOSX
-#define UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS 100000
-#elif AIX
-#define UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS 10
-#elif OPENBSD
-#define UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS 10
-#elif DRAGONFLY
-#define UUID_SYSTEM_TIME_RESOLUTION_100NS_TICKS 10
-#else
-#error "System time resolution must be calculated!"
-#endif
-
 #ifdef __cplusplus
 }
 #endif
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to