summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-03 10:32:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-03 13:09:21 +0100
commit9af3b8b4ff2e9e013b77a20775c151a2ec0e978f (patch)
treec4eb67ef653881c28d1addffe369f83495adcf44 /xmlhelp
parent7f0acedf9b5a7544f88af426d7ed3cf0e58176dd (diff)
CID#705780 seeing as this is irredeemably wrong remove it
This is catastrophically wrong, just appear to be lucky that this code path is never called, so remove it entirely rather than mess around fixing it Change-Id: I4a8a443ed20b7e11cd9cc69b3d66d28087f09db8
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx41
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.hxx6
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.cxx8
3 files changed, 1 insertions, 54 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index b961caf78134..dd97078b56f9 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -1051,47 +1051,6 @@ Reference< XHierarchicalNameAccess > Databases::findJarFileForPath
return xNA;
}
-void Databases::popupDocument( URLParameter* urlPar,char **buffer,int *byteCount )
-{
- const char* pop1 =
- " <html> "
- " <head> "
- " <help:css-file-link xmlns:help=\"http://openoffice.org/2000/help\"/> "
- " </head> "
- " <body> "
- " <help:popup-cut Id=\"";
- const sal_Int32 l1 = strlen( pop1 );
-
- const char* pop3 = "\" Eid=\"";
- const sal_Int32 l3 = strlen( pop3 );
-
- const char* pop5 =
- "\" xmlns:help=\"http://openoffice.org/2000/help\"></help:popup-cut> "
- " </body> "
- " </html>";
- const sal_Int32 l5 = strlen( pop5 );
- sal_Int32 l2,l4;
-
- OUString val = urlPar->get_id();
- OString pop2O( val.getStr(),l2 = val.getLength(),RTL_TEXTENCODING_UTF8 );
- const char* pop2 = pop2O.getStr();
-
- val = urlPar->get_eid();
- OString pop4O( val.getStr(),l4 = val.getLength(),RTL_TEXTENCODING_UTF8 );
- const char* pop4 = pop4O.getStr();
-
- (*byteCount) = l1 + l2 + l3 + l4 + l5;
-
- *buffer = new char[ 1+*byteCount ];
-
- memcpy( *buffer,pop1,l1 );
- memcpy( *buffer+l1,pop2,l2 );
- memcpy( *buffer+(l1+l2),pop3,l3 );
- memcpy( *buffer+(l1+l2+l3),pop4,l4 );
- memcpy( *buffer+(l1+l2+l3+l4),pop5,l5 );
- (*buffer)[*byteCount] = 0;
-}
-
void Databases::changeCSS(const OUString& newStyleSheet)
{
m_aCSS = newStyleSheet.toAsciiLowerCase();
diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx
index 46e04fd11e88..56423cfae98b 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.hxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.hxx
@@ -202,12 +202,6 @@ namespace chelp {
// // of XCollator
/**
- * Returns a copy of the popupfile
- */
-
- void popupDocument( URLParameter* urlPar,char **buffer,int *byteCount );
-
- /**
* Returns the cascading stlye sheet used to format the HTML-output.
* First try is language directory, second try is main installation directory.
*/
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
index 8cc8cf857ad4..6ea53045ec22 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
@@ -794,13 +794,7 @@ helpRead(void * context, char * buffer, int len) {
static int
zipRead(void * context, char * buffer, int len) {
- if( !ugblData->m_pInitial->get_eid().isEmpty() )
- {
- ugblData->m_pDatabases->popupDocument( ugblData->m_pInitial,&buffer,&len);
- return len;
- }
- else
- return helpRead(context, buffer, len);
+ return helpRead(context, buffer, len);
}
static int