diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-08-24 11:43:09 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-08-24 12:26:02 +0300 |
commit | 3e8c8728967bab1aca1892b55af1497ceccaf67b (patch) | |
tree | ff600de7125ee5c6a80de2aaa2a3f87e51bcb46e | |
parent | 5275de82b04331e38923f1e8429d46091884f6e2 (diff) |
Remove function that has been commented-out since 2000
Change-Id: I18ed3ba6f1567ec40f3a87d988863680c55f665b
-rw-r--r-- | sal/osl/unx/file_url.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx index d3e23c4563ea..b55251fcea53 100644 --- a/sal/osl/unx/file_url.cxx +++ b/sal/osl/unx/file_url.cxx @@ -76,29 +76,6 @@ const sal_Bool uriCharClass[128] = 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0 /* pqrstuvwxyz{|}~ */ }; - -/* check for top wrong usage strings */ -/* -static sal_Bool findWrongUsage( const sal_Unicode *path, sal_Int32 len ) -{ - rtl_uString *pTmp = NULL; - sal_Bool bRet; - - rtl_uString_newFromStr_WithLength( &pTmp, path, len ); - - rtl_ustr_toAsciiLowerCase_WithLength( pTmp->buffer, pTmp->length ); - - bRet = ( 0 == rtl_ustr_ascii_shortenedCompare_WithLength( pTmp->buffer, pTmp->length, "ftp://", 6 ) ) || - ( 0 == rtl_ustr_ascii_shortenedCompare_WithLength( pTmp->buffer, pTmp->length, "http://", 7 ) ) || - ( 0 == rtl_ustr_ascii_shortenedCompare_WithLength( pTmp->buffer, pTmp->length, "vnd.sun.star", 12 ) ) || - ( 0 == rtl_ustr_ascii_shortenedCompare_WithLength( pTmp->buffer, pTmp->length, "private:", 8 ) ) || - ( 0 == rtl_ustr_ascii_shortenedCompare_WithLength( pTmp->buffer, pTmp->length, "slot:", 5) ); - - rtl_uString_release( pTmp ); - return bRet; -} -*/ - oslFileError SAL_CALL osl_getCanonicalName( rtl_uString* ustrFileURL, rtl_uString** pustrValidURL ) { OSL_FAIL("osl_getCanonicalName not implemented"); @@ -248,11 +225,6 @@ oslFileError SAL_CALL osl_getSystemPathFromFileURL( rtl_uString *ustrFileURL, rt } } - /* temporary check for top 5 wrong usage strings (which are valid but unlikly filenames) */ - /* - OSL_ASSERT( !findWrongUsage( pTmp->buffer, pTmp->length ) ); - */ - rtl_uString_assign ( pustrSystemPath, pTmp ); rtl_uString_release ( pTmp ); return osl_File_E_None; @@ -349,11 +321,6 @@ oslFileError SAL_CALL osl_getFileURLFromSystemPath( rtl_uString *ustrSystemPath, if( NULL == pTmp ) rtl_uString_assign( &pTmp, ustrSystemPath ); - /* temporary check for top 5 wrong usage strings (which are valid but unlikly filenames) */ - /* - OSL_ASSERT( !findWrongUsage( pTmp->buffer, pTmp->length ) ); - */ - /* file URLs must be URI encoded */ rtl_uriEncode( pTmp, uriCharClass, rtl_UriEncodeIgnoreEscapes, RTL_TEXTENCODING_UTF8, pustrFileURL ); |