summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-03-23 09:48:48 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-03-23 09:48:48 +0100
commitbeb2c3bed1a6973f02fafa7831b9ab5e51e7badc (patch)
treea69c7f701eb63750cf12cdb5467d32262546da95 /fpicker
parentd4163c17ef47fdbc7d45adc5803b9844739b3324 (diff)
-Werror=unused-but-set-variable
Change-Id: I77a73caf56878060ba3688c87e9b6d5dd3ae28b1
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index dc1e570322ef..3d86696bf9bb 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -803,20 +803,6 @@ bool SvtFileDialog::createNewUserFilter( const OUString& _rNewFilter )
// is always "*.<something>". But changing this would take some more time than I have now...
// now, the default extension is set to the one of the user filter (or empty)
- // if the former is not allowed (_bAllowUserDefExt = <FALSE/>), we have to use the ext of the current filter
- // (if possible)
- bool bUseCurFilterExt = true;
- OUString sUserFilter = _pImp->_pUserFilter->GetType();
- sal_Int32 nSepPos = sUserFilter.lastIndexOf( '.' );
- if ( nSepPos != -1 )
- {
- OUString sUserExt = sUserFilter.copy( nSepPos + 1 );
- if ( ( -1 == sUserExt.indexOf( '*' ) )
- && ( -1 == sUserExt.indexOf( '?' ) )
- )
- bUseCurFilterExt = false;
- }
-
if ( _pImp->GetCurFilter( ) )
SetDefaultExt( _pImp->GetCurFilter( )->GetExtension() );
else