From 169a9708686c9a04758e9fac801d4446f3bb9b90 Mon Sep 17 00:00:00 2001 From: Brian Bergstrand Date: Tue, 5 Jan 2016 21:34:47 -0600 Subject: [PATCH] Remove unused functions --- qwt/src/qwt_date.cpp | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/qwt/src/qwt_date.cpp b/qwt/src/qwt_date.cpp index 741eb8663..90d77ab46 100644 --- a/qwt/src/qwt_date.cpp +++ b/qwt/src/qwt_date.cpp @@ -160,36 +160,7 @@ static inline QDateTime qwtToTimeSpec( } return dt.toTimeSpec( spec ); -} - -static inline double qwtToJulianDay( int year, int month, int day ) -{ - // code from QDate but using doubles to avoid overflows - // for large values - - const int m1 = ( month - 14 ) / 12; - const int m2 = ( 367 * ( month - 2 - 12 * m1 ) ) / 12; - const double y1 = ::floor( ( 4900.0 + year + m1 ) / 100 ); - - return ::floor( ( 1461.0 * ( year + 4800 + m1 ) ) / 4 ) + m2 - - ::floor( ( 3 * y1 ) / 4 ) + day - 32075; -} - -static inline qint64 qwtFloorDiv64( qint64 a, int b ) -{ - if ( a < 0 ) - a -= b - 1; - - return a / b; -} - -static inline qint64 qwtFloorDiv( int a, int b ) -{ - if ( a < 0 ) - a -= b - 1; - - return a / b; -} +} static inline QDate qwtToDate( int year, int month = 1, int day = 1 ) {