diff options
author | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2015-03-13 22:32:14 -0600 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-16 14:24:07 +0000 |
commit | ea7f16bf0b5e195d65e51c624b0fb37980bf2b95 (patch) | |
tree | 4382269c9c4ee7a2831398fd2b6129e1fa465138 /svtools/source/svhtml | |
parent | 5a751d32b99e330d6656efc337829778e2b58bdb (diff) |
tdf#89361 Remove remnants of Gopher support
Change-Id: Ib2038a43b0d49a525199329a2c79d5779f5322fa
Reviewed-on: https://gerrit.libreoffice.org/14471
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 34 |
1 files changed, 1 insertions, 33 deletions
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] ) |