[Libreoffice-commits] core.git: xmloff/inc xmloff/source

Michael Stahl mstahl at redhat.com
Tue Dec 10 12:22:15 PST 2013


 xmloff/inc/txtfldi.hxx         |    1 -
 xmloff/source/text/txtfldi.cxx |   20 --------------------
 2 files changed, 21 deletions(-)

New commits:
commit f6f2ee5bdd9e0d44437bfbd6dd338adea956b2ab
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Dec 10 17:21:15 2013 +0100

    xmloff: remove unused XMLTimeFieldImportContext::fTimeValue
    
    Change-Id: I0ed6f24d4aae0f62cb63c682322e39e635e49ec8

diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx
index 3ab7140..4c60f11 100644
--- a/xmloff/inc/txtfldi.hxx
+++ b/xmloff/inc/txtfldi.hxx
@@ -301,7 +301,6 @@ protected:
     const OUString sPropertyIsDate;
     const OUString sPropertyIsFixedLanguage;
 
-    double fTimeValue;
     ::com::sun::star::util::DateTime aDateTimeValue;
     sal_Int32 nAdjust;
     sal_Int32 nFormatKey;
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx
index bea669e..e1a82df 100644
--- a/xmloff/source/text/txtfldi.cxx
+++ b/xmloff/source/text/txtfldi.cxx
@@ -1076,7 +1076,6 @@ XMLTimeFieldImportContext::XMLTimeFieldImportContext(
 ,   sPropertyAdjust(sAPI_adjust)
 ,   sPropertyIsDate(sAPI_is_date)
 ,   sPropertyIsFixedLanguage(sAPI_is_fixed_language)
-,   fTimeValue(0.0)
 ,   nAdjust(0)
 ,   nFormatKey(0)
 ,   bTimeOK(sal_False)
@@ -1095,15 +1094,6 @@ void XMLTimeFieldImportContext::ProcessAttribute(
     {
         case XML_TOK_TEXTFIELD_TIME_VALUE:
         {
-            // FIXME double appears unused?
-            double fTmp;
-            if (GetImport().GetMM100UnitConverter().
-                convertDateTime(fTmp, sAttrValue))
-            {
-                fTimeValue = fTmp;
-                bTimeOK = sal_True;
-            }
-
             if (::sax::Converter::parseTimeOrDateTime(aDateTimeValue, 0,
                         sAttrValue))
             {
@@ -1236,16 +1226,6 @@ void XMLDateFieldImportContext::ProcessAttribute(
     {
         case XML_TOK_TEXTFIELD_DATE_VALUE:
         {
-            double fTmp;
-
-            if (GetImport().GetMM100UnitConverter().
-                convertDateTime(fTmp, sAttrValue))
-            {
-                // #96457#: don't truncate in order to read date+time
-                fTimeValue = fTmp;
-                bTimeOK = sal_True;
-            }
-
             if (::sax::Converter::parseDateTime(aDateTimeValue, 0, sAttrValue))
             {
                 bTimeOK = sal_True;


More information about the Libreoffice-commits mailing list