diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-02 08:37:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-06 10:17:02 +0200 |
commit | 7e776c0027c19f1bb8e64dd68d3fd9ded0b5d896 (patch) | |
tree | 62bae1461c0388af6f7a8bebbf134e9a86c92153 /vcl/inc/unx/salunxtime.h | |
parent | d7f2db4b9ce445afdcabf370497bc66db76efbbc (diff) |
loplugin:unusedmethods
Change-Id: I150baadc442e57ee604563bc52965daa9d2e41af
Diffstat (limited to 'vcl/inc/unx/salunxtime.h')
-rw-r--r-- | vcl/inc/unx/salunxtime.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/vcl/inc/unx/salunxtime.h b/vcl/inc/unx/salunxtime.h index c20a1aa14651..e9b4b81af7f6 100644 --- a/vcl/inc/unx/salunxtime.h +++ b/vcl/inc/unx/salunxtime.h @@ -44,11 +44,6 @@ inline bool operator > ( const timeval &t1, const timeval &t2 ) return t1.tv_sec > t2.tv_sec; } -inline bool operator == ( const timeval &t1, const timeval &t2 ) -{ - return t1.tv_sec == t2.tv_sec && t1.tv_usec == t2.tv_usec; -} - inline timeval &operator -= ( timeval &t1, const timeval &t2 ) { if( t1.tv_usec < t2.tv_usec ) @@ -61,18 +56,6 @@ inline timeval &operator -= ( timeval &t1, const timeval &t2 ) return t1; } -inline timeval &operator += ( timeval &t1, const timeval &t2 ) -{ - t1.tv_sec += t2.tv_sec; - t1.tv_usec += t2.tv_usec; - if( t1.tv_usec > 1000000 ) - { - t1.tv_sec++; - t1.tv_usec -= 1000000; - } - return t1; -} - inline timeval &operator += ( timeval &t1, sal_uIntPtr t2 ) { t1.tv_sec += t2 / 1000; |