Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hy,

Here is the correction. I have removed the declaration

Balint

2011/2/11 Miklos Vajna <vmiklos@frugalware.org>

On Fri, Feb 11, 2011 at 12:16:20PM +0100, Bálint Dózsa <
dozsabalint@gmail.com> wrote:
I have removed this unused method:
writerfilter::dmapper::ConversionHelper::convertDateTime(rtl::OUString
const&)

Didn't you forget to remove its declaration from
source/dmapper/ConversionHelper.hxx?

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


From 0b74a7905ab5be9c252bb7ad4932c908f91cf942 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?B=C3=A1lint=20D=C3=B3zsa?= <dozsabalint@gmail.com>
Date: Fri, 11 Feb 2011 18:34:07 +0100
Subject: [PATCH] Remove unused method

---
 writerfilter/source/dmapper/ConversionHelper.cxx |   43 ----------------------
 writerfilter/source/dmapper/ConversionHelper.hxx |    1 -
 2 files changed, 0 insertions(+), 44 deletions(-)

diff --git a/writerfilter/source/dmapper/ConversionHelper.cxx 
b/writerfilter/source/dmapper/ConversionHelper.cxx
index 824a3f6..8a2b3af 100644
--- a/writerfilter/source/dmapper/ConversionHelper.cxx
+++ b/writerfilter/source/dmapper/ConversionHelper.cxx
@@ -375,7 +375,6 @@ bool lcl_IsNotAM(::rtl::OUString& rFmt, sal_Int32 nPos)
     bool bForceNatNum(false);
     sal_Int32 nLen = sFormat.getLength();
     sal_Int32 nI = 0;
-//    const sal_Unicode* pFormat = sFormat.getStr();
     ::rtl::OUStringBuffer aNewFormat( sFormat.getStr() );
     while (nI < nLen)
     {
@@ -515,48 +514,6 @@ sal_Int16 convertTableJustification( sal_Int32 nIntValue )
     }
     return nOrient;
 }
-/*-- 06.08.2007 15:27:30---------------------------------------------------
-     conversion form xsd::DateTime
-    [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]
-  -----------------------------------------------------------------------*/
-com::sun::star::util::DateTime convertDateTime( const ::rtl::OUString& rDateTimeString )
-{
-    util::DateTime aRet( 0, 0, 0, 0, 1, 1, 1901 );
-    //
-    sal_Int32 nIndex = 0;
-    ::rtl::OUString sDate( rDateTimeString.getToken( 0, 'T', nIndex ));
-    sal_Int32 nDateIndex = 0;
-    aRet.Year = (sal_uInt16)sDate.getToken( 0, '-', nDateIndex ).toInt32();
-    if( nDateIndex > 0)
-        aRet.Month = (sal_uInt16)sDate.getToken( 0, '-', nDateIndex ).toInt32();
-    if( nDateIndex > 0)
-        aRet.Day = (sal_uInt16)sDate.getToken( 0, '-', nDateIndex ).toInt32();
-    ::rtl::OUString sTime;
-    if(nIndex > 0) 
-    {
-        sTime = ( rDateTimeString.getToken( 0, 'Z', nIndex ));
-        sal_Int32 nTimeIndex = 0;
-        aRet.Hours = (sal_uInt16)sTime.getToken( 0, ':', nTimeIndex ).toInt32();
-        if( nTimeIndex > 0)
-            aRet.Minutes = (sal_uInt16)sTime.getToken( 0, ':', nTimeIndex ).toInt32();
-        if( nTimeIndex > 0)
-        {
-            ::rtl::OUString sSeconds = sTime.getToken( 0, ':', nTimeIndex );
-            nTimeIndex = 0;
-            aRet.Seconds = (sal_uInt16)sSeconds.getToken( 0, '.', nTimeIndex ).toInt32();
-            aRet.HundredthSeconds = (sal_uInt16)sSeconds.getToken( 0, '.', nTimeIndex ).toInt32();
-        }
-        
-// todo: ignore time offset for a while - there's no time zone available 
-//        nIndex = 0;
-//        ::rtl::OUString sOffset( rDateTimeString.getToken( 1, 'Z', nIndex ));
-//        if( sOffset.getLength() )
-//        {
-//              add hour and minute offset and increase/decrease date if necessary
-//        }    
-    }
-    return aRet;
-}
 /*-- 05.03.2008 09:10:13---------------------------------------------------
 
   -----------------------------------------------------------------------*/
diff --git a/writerfilter/source/dmapper/ConversionHelper.hxx 
b/writerfilter/source/dmapper/ConversionHelper.hxx
index a60a5f4..64b7d9e 100644
--- a/writerfilter/source/dmapper/ConversionHelper.hxx
+++ b/writerfilter/source/dmapper/ConversionHelper.hxx
@@ -57,7 +57,6 @@ namespace ConversionHelper{
     sal_Int32 convertEMUToMM100(sal_Int32 _t);
     sal_Int32 ConvertColor(sal_Int32 nWordColor );
     sal_Int16 convertTableJustification( sal_Int32 nIntValue );
-    ::com::sun::star::util::DateTime convertDateTime( const ::rtl::OUString& rDateTimeString );
     sal_Int16 ConvertNumberingType(sal_Int32 nNFC);
 
 } // namespace ConversionHelper
-- 
1.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.