summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/jdbc/jservices.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/jdbc/jservices.cxx')
-rw-r--r--connectivity/source/drivers/jdbc/jservices.cxx16
1 files changed, 0 insertions, 16 deletions
diff --git a/connectivity/source/drivers/jdbc/jservices.cxx b/connectivity/source/drivers/jdbc/jservices.cxx
index 81cfc3c09f09..438bb28b3318 100644
--- a/connectivity/source/drivers/jdbc/jservices.cxx
+++ b/connectivity/source/drivers/jdbc/jservices.cxx
@@ -19,7 +19,6 @@
#include "java/sql/Driver.hxx"
#include <cppuhelper/factory.hxx>
-#include <uno/lbnames.h>
using namespace connectivity;
using ::com::sun::star::uno::Reference;
@@ -76,21 +75,6 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL
-jdbc_component_getImplementationEnvironment(
- char const ** ppEnvTypeName, uno_Environment **)
-{
- // Recent Java 6 VMs make calls to JNI Attach/DetachCurrentThread (which
- // this code does extensively) very expensive. A follow-up JVM fix reduced
- // the overhead significantly again for all threads but the main thread. So
- // a quick hack to improve performance of this component again is to confine
- // it in the affine apartment (where all code will run on a single,
- // dedicated thread that is guaranteed no to be the main thread). However,
- // a better fix would still be to redesign the code so that it does not call
- // Attach/DetachCurrentThread so frequently:
- *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ":affine";
-}
-
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL jdbc_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,