diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-22 12:13:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-22 18:01:25 +0100 |
commit | f47b60667ff307e9e44ecd5457261151b9aca8cb (patch) | |
tree | 74fb3d0d1e12117cefae6d294e57e0855ee0c03d /sc | |
parent | dabadf7c54a778546d5a64edf2152cd2f04b72a3 (diff) |
SfxProgress:SetStateText is dead
since
commit 83ee1bccf9899bb5c1913389b9a26a73a515ad82
Date: Fri Jul 22 09:19:52 2011 +0100
callcatcher: remove unused methods
and even following the history back before that only shows one previous
actual place where the state text was being displayed.
Change-Id: Ib520cb6e999c1e11caf7348821bb274cdd785a44
Reviewed-on: https://gerrit.libreoffice.org/68198
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/globstr.hrc | 1 | ||||
-rw-r--r-- | sc/inc/progress.hxx | 9 | ||||
-rw-r--r-- | sc/source/ui/docshell/dbdocimp.cxx | 7 |
3 files changed, 1 insertions, 16 deletions
diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc index dbdcd6676d99..614beb5300bb 100644 --- a/sc/inc/globstr.hrc +++ b/sc/inc/globstr.hrc @@ -125,7 +125,6 @@ #define STR_MSSG_REPEATDB_0 NC_("STR_MSSG_REPEATDB_0", "No operations to execute") #define STR_MSSG_MAKEAUTOFILTER_0 NC_("STR_MSSG_MAKEAUTOFILTER_0", "The range does not contain column headers.\nDo you want the first line to be used as column header?") #define STR_MSSG_IMPORTDATA_0 NC_("STR_MSSG_IMPORTDATA_0", "Error while importing data!") -#define STR_PROGRESS_IMPORT NC_("STR_PROGRESS_IMPORT", "# records imported...") #define STR_MSSG_MAKEOUTLINE_0 NC_("STR_MSSG_MAKEOUTLINE_0", "Grouping not possible") #define STR_MSSG_REMOVEOUTLINE_0 NC_("STR_MSSG_REMOVEOUTLINE_0", "Ungrouping not possible") #define STR_MSSG_PASTEFROMCLIP_0 NC_("STR_MSSG_PASTEFROMCLIP_0", "Insert into multiple selection not possible") diff --git a/sc/inc/progress.hxx b/sc/inc/progress.hxx index c8fb59646e58..7df88df6328c 100644 --- a/sc/inc/progress.hxx +++ b/sc/inc/progress.hxx @@ -76,15 +76,6 @@ public: /// for DummyInterpret only, never use otherwise!!! ScProgress(); #endif - - void SetStateText( sal_uLong nVal, const OUString &rVal ) - { - if ( pProgress ) - { - CalcGlobalPercent( nVal ); - pProgress->SetStateText( nVal, rVal ); - } - } void SetState( sal_uLong nVal, sal_uLong nNewRange = 0 ) { if ( pProgress ) diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx index 56cc78aa9cfb..73c1e00de8a3 100644 --- a/sc/source/ui/docshell/dbdocimp.cxx +++ b/sc/source/ui/docshell/dbdocimp.cxx @@ -342,12 +342,7 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, ++nInserted; if (!(nInserted & 15)) { - OUString aPict = ScResId( STR_PROGRESS_IMPORT ); - OUString aText = aPict.getToken(0, '#') - + OUString::number( nInserted ) - + aPict.getToken(1, '#'); - - aProgress.SetStateText( 0, aText ); + aProgress.SetState( 0 ); } } else // past the end of the spreadsheet |