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 | |
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>
-rw-r--r-- | include/svtools/htmlkywd.hxx | 10 | ||||
-rw-r--r-- | sal/qa/osl/socket/osl_Socket_Const_orig.h | 1 | ||||
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 34 |
3 files changed, 1 insertions, 44 deletions
diff --git a/include/svtools/htmlkywd.hxx b/include/svtools/htmlkywd.hxx index 4d52d0279687..54309a7867d1 100644 --- a/include/svtools/htmlkywd.hxx +++ b/include/svtools/htmlkywd.hxx @@ -657,17 +657,7 @@ // internal graphics names #define OOO_STRING_SVTOOLS_HTML_private_image "private:image/" -#define OOO_STRING_SVTOOLS_HTML_internal_gopher "internal-gopher-" #define OOO_STRING_SVTOOLS_HTML_internal_icon "internal-icon-" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_binary "binary" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_image "image" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_index "index" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_menu "menu" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_movie "movie" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_sound "sound" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_telnet "telnet" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_text "text" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_unknown "unknown" #define OOO_STRING_SVTOOLS_HTML_INT_ICON_baddata "baddata" #define OOO_STRING_SVTOOLS_HTML_INT_ICON_delayed "delayed" #define OOO_STRING_SVTOOLS_HTML_INT_ICON_embed "embed" diff --git a/sal/qa/osl/socket/osl_Socket_Const_orig.h b/sal/qa/osl/socket/osl_Socket_Const_orig.h index 28e2fdc5237b..c59e8a2da9ed 100644 --- a/sal/qa/osl/socket/osl_Socket_Const_orig.h +++ b/sal/qa/osl/socket/osl_Socket_Const_orig.h @@ -107,7 +107,6 @@ extern "C" OSLTEST_DECLARE( ServiceFTP, "ftp" ); OSLTEST_DECLARE( ServiceTELNET, "telnet" ); -OSLTEST_DECLARE( ServiceGOPHER, "gopher" ); OSLTEST_DECLARE( ServiceIMAP, "imap" ); OSLTEST_DECLARE( ServiceHTTPS, "https" ); OSLTEST_DECLARE( ServiceNETBIOS, "netbios-dgm" ); 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] ) |