From 700161cce79df7137fc4db433db6e41905d76975 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 21 Feb 2014 12:36:28 +0200 Subject: remove unused code utl::toISO8601(com::sun::star::util::Time const&) Change-Id: I8df1934c7392ec38918be2a5b986c6ca871f9d15 --- unotools/source/misc/datetime.cxx | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'unotools') diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx index 176769d989cd..8283807e738c 100644 --- a/unotools/source/misc/datetime.cxx +++ b/unotools/source/misc/datetime.cxx @@ -222,33 +222,6 @@ OUString toISO8601(const starutil::DateTime& rDateTime) return rBuffer.makeStringAndClear(); } -OUString toISO8601(const starutil::Time& rTime) -{ - OUStringBuffer rBuffer; - if( rTime.Hours < 10 ) - rBuffer.append('0'); - rBuffer.append((sal_Int32) rTime.Hours); - rBuffer.append(':'); - if( rTime.Minutes < 10 ) - rBuffer.append('0'); - rBuffer.append((sal_Int32) rTime.Minutes); - rBuffer.append(':'); - if( rTime.Seconds < 10 ) - rBuffer.append('0'); - rBuffer.append((sal_Int32) rTime.Seconds); - if ( rTime.NanoSeconds > 0) - { - OSL_ENSURE(rTime.NanoSeconds < 1000000000,"NanoSeconds cannot be more than 999 999 999"); - rBuffer.append(','); - std::ostringstream ostr; - ostr.fill('0'); - ostr.width(9); - ostr << rTime.NanoSeconds; - rBuffer.append(OUString::createFromAscii(ostr.str().c_str())); - } - return rBuffer.makeStringAndClear(); -} - /** convert ISO8601 DateTime String to util::DateTime */ bool ISO8601parseDateTime(const OUString &rString, starutil::DateTime& rDateTime) { -- cgit