summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-06-05 22:59:19 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-06-06 00:59:23 +0900
commitf7ebee38a3c5c6cb58f40109a213d449138ea987 (patch)
treeb5083e38ec0c9881ce416bb54e5bcb16f4333641 /connectivity
parenteb9b8ebca49291797e655b50f64af2c2fa03434c (diff)
removed dead code
Change-Id: I02e535f0a0e55446e5a29297c2d05b1503805e71
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mozab/MTables.cxx5
-rw-r--r--connectivity/source/drivers/mysql/YTables.cxx12
2 files changed, 0 insertions, 17 deletions
diff --git a/connectivity/source/drivers/mozab/MTables.cxx b/connectivity/source/drivers/mozab/MTables.cxx
index dfa7b99404c4..22974a27e99c 100644
--- a/connectivity/source/drivers/mozab/MTables.cxx
+++ b/connectivity/source/drivers/mozab/MTables.cxx
@@ -56,16 +56,11 @@ using namespace dbtools;
sdbcx::ObjectType OTables::createObject(const ::rtl::OUString& _rName)
{
::rtl::OUString aName,aSchema;
- // sal_Int32 nLen = _rName.indexOf('.');
- // aSchema = _rName.copy(0,nLen);
- // aName = _rName.copy(nLen+1);
aSchema = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("%"));
aName = _rName;
Sequence< ::rtl::OUString > aTypes(1);
aTypes[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("%"));
- // aTypes[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("TABLE"));
- // aTypes[1] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("SYSTEMTABLE"));
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),aSchema,aName,aTypes);
diff --git a/connectivity/source/drivers/mysql/YTables.cxx b/connectivity/source/drivers/mysql/YTables.cxx
index e77a22003fdc..38a49d401c00 100644
--- a/connectivity/source/drivers/mysql/YTables.cxx
+++ b/connectivity/source/drivers/mysql/YTables.cxx
@@ -80,18 +80,6 @@ sdbcx::ObjectType OTables::createObject(const ::rtl::OUString& _rName)
Reference< XRow > xRow(xResult,UNO_QUERY);
if ( xResult->next() ) // there can be only one table with this name
{
-// Reference<XStatement> xStmt = m_xConnection->createStatement();
-// if ( xStmt.is() )
-// {
-// Reference< XResultSet > xPrivRes = xStmt->executeQuery();
-// Reference< XRow > xPrivRow(xPrivRes,UNO_QUERY);
-// while ( xPrivRes.is() && xPrivRes->next() )
-// {
-// if ( xPrivRow->getString(1) )
-// {
-// }
-// }
-// }
sal_Int32 nPrivileges = Privilege::DROP |
Privilege::REFERENCE |
Privilege::ALTER |