[Libreoffice-commits] .: connectivity/source

Thomas Arnhold tarnhold at kemper.freedesktop.org
Thu Feb 24 10:58:57 PST 2011


 connectivity/source/drivers/jdbc/JConnection.cxx |    4 ++--
 connectivity/source/drivers/jdbc/ResultSet.cxx   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit be6cb8a546e5ea1730150136a58f401eb2dc808c
Author: Christina Roßmanith <ChrRossmanith at web.de>
Date:   Thu Feb 24 19:58:07 2011 +0100

    Remove dead code

diff --git a/connectivity/source/drivers/jdbc/JConnection.cxx b/connectivity/source/drivers/jdbc/JConnection.cxx
index 452ecb0..9621b33 100644
--- a/connectivity/source/drivers/jdbc/JConnection.cxx
+++ b/connectivity/source/drivers/jdbc/JConnection.cxx
@@ -427,9 +427,9 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL java_sql_Connecti
 
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
     static jmethodID mID(NULL);
-    /*jobject out = */callObjectMethod(t.pEnv,"getTypeMap","()Ljava/util/Map;", mID);
+    callObjectMethod(t.pEnv,"getTypeMap","()Ljava/util/Map;", mID);
     // WARNING: the caller becomes the owner of the returned pointer
-    return 0;// ? 0 : Map2XNameAccess( t.pEnv, out );
+    return 0;
 }
 // -------------------------------------------------------------------------
 void SAL_CALL java_sql_Connection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
diff --git a/connectivity/source/drivers/jdbc/ResultSet.cxx b/connectivity/source/drivers/jdbc/ResultSet.cxx
index 9ab7934..afb8647 100644
--- a/connectivity/source/drivers/jdbc/ResultSet.cxx
+++ b/connectivity/source/drivers/jdbc/ResultSet.cxx
@@ -893,7 +893,7 @@ void SAL_CALL java_sql_ResultSet::updateNumericObject( sal_Int32 columnIndex, co
                 }
                 else
                     pBigDecimal.reset(new java_math_BigDecimal(::comphelper::getString(x)));
-                    //obj = convertwchar_tToJavaString(t.pEnv,::comphelper::getString(x));
+
                 t.pEnv->CallVoidMethod( object, mID, columnIndex,pBigDecimal->getJavaObject(),scale);
                 ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
             }


More information about the Libreoffice-commits mailing list