[PATCH 3/5] dead code removed components plugin base
pjacquod
pjacquod at alumni.ethz.ch
Sun Nov 21 03:32:21 PST 2010
---
extensions/source/plugin/base/nfuncs.cxx | 14 +-------------
extensions/source/plugin/base/xplugin.cxx | 14 --------------
2 files changed, 1 insertions(+), 27 deletions(-)
diff --git a/extensions/source/plugin/base/nfuncs.cxx b/extensions/source/plugin/base/nfuncs.cxx
index cbfc05e..17a6f9f 100644
--- a/extensions/source/plugin/base/nfuncs.cxx
+++ b/extensions/source/plugin/base/nfuncs.cxx
@@ -583,22 +583,10 @@ NPError SAL_CALL NP_LOADDS NPN_GetValue( NPP instance, NPNVariable variable, vo
*(NPBool*)value = false;
break;
}
+
/*
provisional code should there ever be NPNVariables that we actually
want to query from the PluginContext
- ::rtl::OUString aValue;
- try
- {
- pImpl->enterPluginCallback();
- aValue = pImpl->getPluginContext()->
- getValue( pImpl, (::com::sun::star::plugin::PluginVariable)variable );
- pImpl->leavePluginCallback();
- }
- catch( ::com::sun::star::plugin::PluginException& e )
- {
- pImpl->leavePluginCallback();
- return e.ErrorCode;
- }
*/
return aResult;
diff --git a/extensions/source/plugin/base/xplugin.cxx b/extensions/source/plugin/base/xplugin.cxx
index 610cc8d..7eab876 100644
--- a/extensions/source/plugin/base/xplugin.cxx
+++ b/extensions/source/plugin/base/xplugin.cxx
@@ -725,20 +725,6 @@ sal_Bool XPlugin_Impl::provideNewStream(const OUString& mimetype,
// but currently none are known. Since this file opening/seeking/closing
// is rather costly, it is #if'ed out. If there are plugins known to
// make use of the file length, simply put it in
-#if 0
- if( isfile && ! length )
- {
- osl::File aFile( url );
- if( aFile.open( OpenFlag_Read ) == FileBase::E_None )
- {
- aFile.setPos( Pos_End, 0 );
- sal_uInt64 nPos = 0;
- if( aFile.getPos( nPos ) == FileBase::E_None )
- length = nPos;
- aFile.close();
- }
- }
-#endif
PluginInputStream* pStream = new PluginInputStream( this, aURL.getStr(),
length, lastmodified );
--
1.7.1
--------------050307010909000709050806
Content-Type: text/x-patch;
name="0004-dead-code-removed-in-components-xmlsecurity-helper.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0004-dead-code-removed-in-components-xmlsecurity-helper.patc";
filename*1="h"
More information about the LibreOffice
mailing list