Kaydet (Commit) 700161cc authored tarafından Noel Grandin's avatar Noel Grandin

remove unused code utl::toISO8601(com::sun::star::util::Time const&)

Change-Id: I8df1934c7392ec38918be2a5b986c6ca871f9d15
üst c8f83ce1
......@@ -45,7 +45,6 @@ namespace utl
UNOTOOLS_DLLPUBLIC void typeConvert(const starutil::DateTime& _rDateTime, DateTime& _rOut);
UNOTOOLS_DLLPUBLIC ::rtl::OUString toISO8601(const starutil::DateTime& _rDateTime);
UNOTOOLS_DLLPUBLIC ::rtl::OUString toISO8601(const starutil::Time& _rTime);
UNOTOOLS_DLLPUBLIC bool ISO8601parseDateTime(const ::rtl::OUString &i_rIn, starutil::DateTime& o_rDateTime);
UNOTOOLS_DLLPUBLIC bool ISO8601parseDate(const ::rtl::OUString &i_rIn, starutil::Date& o_rDate);
UNOTOOLS_DLLPUBLIC bool ISO8601parseTime(const ::rtl::OUString &i_rIn, starutil::Time& o_Time);
......
......@@ -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)
{
......
......@@ -357,7 +357,6 @@ std::vector<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread>, std::
svl::SharedStringPool::SharedStringPool()
svx::frame::Style::Style(editeng::SvxBorderLine const&, double, unsigned short)
utl::MediaDescriptor::PROP_DEEPDETECTION()
utl::toISO8601(com::sun::star::util::Time const&)
vcl::MapChar(vcl::_TrueTypeFont*, unsigned short, bool)
writerfilter::dump(writerfilter::OutputWithDepth<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, char const*, boost::shared_ptr<writerfilter::Reference<writerfilter::BinaryObj> >)
writerfilter::dump(writerfilter::OutputWithDepth<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, char const*, boost::shared_ptr<writerfilter::Reference<writerfilter::Properties> >)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment