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

Caolán McNamara caolanm at redhat.com
Wed Nov 8 11:25:29 UTC 2017


 sc/inc/filter.hxx                   |    1 -
 sc/source/filter/inc/ftools.hxx     |    1 -
 sc/source/filter/starcalc/scflt.cxx |    7 -------
 sc/source/ui/docshell/docsh.cxx     |   15 ---------------
 4 files changed, 24 deletions(-)

New commits:
commit 083360df1b33cb8538dd098dbaa498b2b62087ca
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Nov 7 21:02:44 2017 +0000

    ScImportStarCalc10 appears uncallable
    
    I can't see a mention of "StarCalc 1.0" anywhere in our code
    which might appear here as a filtername
    
    last mention of something like it is...
    
    commit cf8f6fe1f9d65eedbc6f4d65ce0fa88831830966
    Author: Michael Stahl <mstahl at redhat.com>
    Date:   Tue Feb 5 15:49:26 2013 +0100
    
        officecfg: remove references to binfilter formats
    
    Change-Id: Ia6f9ab89489e33ca3680c150fd896035b8dee491
    Reviewed-on: https://gerrit.libreoffice.org/44426
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/inc/filter.hxx b/sc/inc/filter.hxx
index 04a0f4206985..5bef4a0e07d0 100644
--- a/sc/inc/filter.hxx
+++ b/sc/inc/filter.hxx
@@ -65,7 +65,6 @@ class SAL_DLLPUBLIC_RTTI ScFormatFilterPlugin {
         // eFormat == EIF_BIFF5 -> only Biff5 stream is read successfully (in an Excel97 doc, too)
         // eFormat == EIF_BIFF8 -> only Biff8 stream is read successfully (only in Excel97 docs)
         // eFormat == EIF_BIFF_LE4 -> only non storage files _might_ be read successfully
-    virtual ErrCode ScImportStarCalc10( SvStream&, ScDocument* ) = 0;
     virtual ErrCode ScImportDif( SvStream&, ScDocument*, const ScAddress& rInsPos,
                  const rtl_TextEncoding eSrc ) = 0;
     virtual ErrCode ScImportRTF( SvStream&, const OUString& rBaseURL, ScDocument*, ScRange& rRange ) = 0;
diff --git a/sc/source/filter/inc/ftools.hxx b/sc/source/filter/inc/ftools.hxx
index d73bb5785745..086ba65fb4d2 100644
--- a/sc/source/filter/inc/ftools.hxx
+++ b/sc/source/filter/inc/ftools.hxx
@@ -270,7 +270,6 @@ public:
         // eFormat == EIF_BIFF5 -> only Biff5 stream leads to success (even in an Excel97 doc)
         // eFormat == EIF_BIFF8 -> only Biff8 stream leads to success (only in Excel97 docs)
         // eFormat == EIF_BIFF_LE4 -> only non-storage files _could_ lead to success
-    virtual ErrCode ScImportStarCalc10( SvStream&, ScDocument* ) override;
     virtual ErrCode ScImportDif( SvStream&, ScDocument*, const ScAddress& rInsPos,
                  const rtl_TextEncoding eSrc ) override;
     virtual ErrCode ScImportRTF( SvStream&, const OUString& rBaseURL, ScDocument*, ScRange& rRange ) override;
diff --git a/sc/source/filter/starcalc/scflt.cxx b/sc/source/filter/starcalc/scflt.cxx
index f1e74b1544c8..d15bf25b90cb 100644
--- a/sc/source/filter/starcalc/scflt.cxx
+++ b/sc/source/filter/starcalc/scflt.cxx
@@ -2400,11 +2400,4 @@ void Sc10Import::LoadObjects()
     }
 }
 
-ErrCode ScFormatFilterPluginImpl::ScImportStarCalc10( SvStream& rStream, ScDocument* pDocument )
-{
-    rStream.Seek( 0 );
-    Sc10Import  aImport( rStream, pDocument );
-    return aImport.Import();
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index f9d2cc684d91..f4e19318d23d 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -1089,21 +1089,6 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium )
 
         if (aFltName == pFilterXML)
             bRet = LoadXML( &rMedium, nullptr );
-        else if (aFltName == "StarCalc 1.0")
-        {
-            SvStream* pStream = rMedium.GetInStream();
-            if (pStream)
-            {
-                ErrCode eError = ScFormatFilter::Get().ScImportStarCalc10( *pStream, &aDocument );
-                if (eError != ERRCODE_NONE)
-                {
-                    if (!GetError())
-                        SetError(eError);
-                }
-                else
-                    bRet = true;
-            }
-        }
         else if (aFltName == pFilterLotus)
         {
             OUString sItStr;


More information about the Libreoffice-commits mailing list