From 52da4081bf6d7bf97e102dab3e0082f11488215b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 7 Aug 2017 08:03:11 +0200 Subject: Remove dead DBG_UTIL code Change-Id: Icb208bc457eaab06bc14e874c70a25308179785d --- connectivity/source/commontools/dbtools2.cxx | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'connectivity/source/commontools') diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx index 43f4aaef2774..7ee10d3f3323 100644 --- a/connectivity/source/commontools/dbtools2.cxx +++ b/connectivity/source/commontools/dbtools2.cxx @@ -710,18 +710,8 @@ sal_Int32 getTablePrivileges(const Reference< XDatabaseMetaData>& _xMetaData, OUString sPrivilege, sGrantee; while ( xPrivileges->next() ) { -#ifdef DBG_UTIL - OUString sCat, sSchema, sName, sGrantor, sGrantable; - sCat = xCurrentRow->getString(1); - sSchema = xCurrentRow->getString(2); - sName = xCurrentRow->getString(3); - sGrantor = xCurrentRow->getString(4); -#endif sGrantee = xCurrentRow->getString(5); sPrivilege = xCurrentRow->getString(6); -#ifdef DBG_UTIL - sGrantable = xCurrentRow->getString(7); -#endif if (!sUserWorkingFor.equalsIgnoreAsciiCase(sGrantee)) continue; @@ -759,19 +749,8 @@ sal_Int32 getTablePrivileges(const Reference< XDatabaseMetaData>& _xMetaData, OUString sPrivilege, sGrantee; while ( xColumnPrivileges->next() ) { -#ifdef DBG_UTIL - OUString sCat, sSchema, sTableName, sColumnName, sGrantor, sGrantable; - sCat = xColumnCurrentRow->getString(1); - sSchema = xColumnCurrentRow->getString(2); - sTableName = xColumnCurrentRow->getString(3); - sColumnName = xColumnCurrentRow->getString(4); - sGrantor = xColumnCurrentRow->getString(5); -#endif sGrantee = xColumnCurrentRow->getString(6); sPrivilege = xColumnCurrentRow->getString(7); -#ifdef DBG_UTIL - sGrantable = xColumnCurrentRow->getString(8); -#endif if (!sUserWorkingFor.equalsIgnoreAsciiCase(sGrantee)) continue; -- cgit