User: kz      
Date: 2008-03-05 17:05:06+0000
Modified:
   dba/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx

Log:
 INTEGRATION: CWS dba30a (1.3.216); FILE MERGED
 2008/02/20 21:31:56 fs 1.3.216.1: remove unused code
 Issue number:  #i86284#
 Submitted by:  [EMAIL PROTECTED]
 Reviewed by:   [EMAIL PROTECTED]

File Changes:

Directory: /dba/dbaccess/source/ui/misc/
========================================

File [changed]: defaultobjectnamecheck.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx?r1=1.3&r2=1.4
Delta lines:  +0 -38
--------------------
--- defaultobjectnamecheck.cxx  2006-09-17 07:16:34+0000        1.3
+++ defaultobjectnamecheck.cxx  2008-03-05 17:05:03+0000        1.4
@@ -131,44 +131,6 @@
             _out_rErrorToDisplay = aError;
         }
 
-        /** retrieves an container of queries or tables from a given SDB-level 
connection
-            @param  _rxSdbLevelConnection
-                the connection object. Must not be <NULL/>.
-            @param  _nCommandType
-                the CommandType specifying whether tables or queries should be 
obtained. Only
-                CommandType::TABLE and CommandType::QUERY are valid values, 
for all other values,
-                the behavior is undefined.
-            @throws RuntimeException
-                if the given connection does not provide the desired object 
container
-        */
-        Reference< XNameAccess > lcl_getObjectContainer( const Reference< 
XConnection >& _rxSdbLevelConnection, sal_Int32 _nCommandType )
-        {
-            OSL_ENSURE( _rxSdbLevelConnection.is(), "lcl_getObjectContainer: 
this will crash!" );
-
-            Reference< XNameAccess > xContainer;
-            switch ( _nCommandType )
-            {
-                case CommandType::TABLE:
-                {
-                    Reference< XTablesSupplier > xSupplier( 
_rxSdbLevelConnection, UNO_QUERY_THROW );
-                    xContainer = Reference< XNameAccess >( 
xSupplier->getTables(), UNO_QUERY_THROW );
-                }
-                break;
-
-                case CommandType::QUERY:
-                {
-                    Reference< XQueriesSupplier > xSupplier( 
_rxSdbLevelConnection, UNO_QUERY_THROW );
-                    xContainer = Reference< XNameAccess >( 
xSupplier->getQueries(), UNO_QUERY_THROW );
-                }
-                break;
-
-                default:
-                    OSL_ENSURE( false, "lcl_getObjectContainer: unsupported 
command type!" );
-                    break;
-            }
-
-            return xContainer;
-        }
     }
 
        //====================================================================




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to