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 <caol...@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 <mst...@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 <c...@libreoffice.org>
    Reviewed-by: Eike Rathke <er...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to