summaryrefslogtreecommitdiff
path: root/fpicker/source/office/iodlgimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/office/iodlgimp.cxx')
-rw-r--r--fpicker/source/office/iodlgimp.cxx38
1 files changed, 0 insertions, 38 deletions
diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx
index 4f53008eda3d..3a34c1da7be6 100644
--- a/fpicker/source/office/iodlgimp.cxx
+++ b/fpicker/source/office/iodlgimp.cxx
@@ -131,44 +131,6 @@ namespace
}
//*****************************************************************************
-
-String GetRegularExpression_Impl( const String& rFilter )
-{
- String aFilter = rFilter;
- aFilter.EraseLeadingChars().EraseTrailingChars();
- String aRegExp = '^';
-
- for ( const sal_Unicode *pc = aFilter.GetBuffer(); *pc; ++pc )
- {
- if ( '*' == *pc )
- aRegExp += String(RTL_CONSTASCII_USTRINGPARAM(".*"));
- else if ( '?' == *pc )
- aRegExp += '.';
- else
- {
- aRegExp += '\'';
-
- while ( *pc && *pc != '*' && *pc != '?' )
- {
- if ( '\'' == *pc )
- aRegExp += String(RTL_CONSTASCII_USTRINGPARAM("\\\'"));
- else
- aRegExp += *pc;
- pc++;
- }
- aRegExp += '\'';
-
- if ( !*pc )
- break;
- else
- pc--;
- }
- }
- aRegExp += '$';
- return aRegExp;
-}
-
-//*****************************************************************************
// SvtFileDialogFilter_Impl
//*****************************************************************************