From ea7f16bf0b5e195d65e51c624b0fb37980bf2b95 Mon Sep 17 00:00:00 2001 From: Adolfo Jayme Barrientos Date: Fri, 13 Mar 2015 22:32:14 -0600 Subject: tdf#89361 Remove remnants of Gopher support Change-Id: Ib2038a43b0d49a525199329a2c79d5779f5322fa Reviewed-on: https://gerrit.libreoffice.org/14471 Tested-by: Jenkins Reviewed-by: Michael Stahl --- svtools/source/svhtml/parhtml.cxx | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'svtools/source/svhtml') diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index cfbb59b77232..11e173cc768f 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -1842,41 +1842,9 @@ int HTMLParser::FilterListing( int nToken ) bool HTMLParser::InternalImgToPrivateURL( OUString& rURL ) { - if( rURL.getLength() < 19 || 'i' != rURL[0] || - rURL.compareTo( OOO_STRING_SVTOOLS_HTML_internal_gopher, 9 ) != 0 ) - return false; - bool bFound = false; - if( rURL.startsWith( OOO_STRING_SVTOOLS_HTML_internal_gopher ) ) - { - OUString aName( rURL.copy(16) ); - switch( aName[0] ) - { - case 'b': - bFound = aName == OOO_STRING_SVTOOLS_HTML_INT_GOPHER_binary; - break; - case 'i': - bFound = aName == OOO_STRING_SVTOOLS_HTML_INT_GOPHER_image || - aName == OOO_STRING_SVTOOLS_HTML_INT_GOPHER_index; - break; - case 'm': - bFound = aName == OOO_STRING_SVTOOLS_HTML_INT_GOPHER_menu || - aName == OOO_STRING_SVTOOLS_HTML_INT_GOPHER_movie; - break; - case 's': - bFound = aName == OOO_STRING_SVTOOLS_HTML_INT_GOPHER_sound; - break; - case 't': - bFound = aName == OOO_STRING_SVTOOLS_HTML_INT_GOPHER_telnet || - aName == OOO_STRING_SVTOOLS_HTML_INT_GOPHER_text; - break; - case 'u': - bFound = aName == OOO_STRING_SVTOOLS_HTML_INT_GOPHER_unknown; - break; - } - } - else if( rURL.startsWith( OOO_STRING_SVTOOLS_HTML_internal_icon ) ) + if( rURL.startsWith( OOO_STRING_SVTOOLS_HTML_internal_icon ) ) { OUString aName( rURL.copy(14) ); switch( aName[0] ) -- cgit