From f1dda661333727591d7e616700e829b5e3aa6339 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 18 Sep 2017 10:15:02 +0200 Subject: loplugin:unusedfields in ResultSetColumnData ever since introduction in commit 24f26145eb03b2fe8e0099309d7e6fa1a0061ef4 Date: Thu Jan 18 08:03:55 2001 +0000 "#82177# - Added support for additional column data ( case- sensitivity, ... )" Change-Id: I593f7e2a3be7b6445c7975ff385b6ba0d35183b9 --- ucbhelper/source/provider/resultsetmetadata.cxx | 44 ++++++------------------- 1 file changed, 10 insertions(+), 34 deletions(-) (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx index 1c572a1fe7c8..a118a8e6f768 100644 --- a/ucbhelper/source/provider/resultsetmetadata.cxx +++ b/ucbhelper/source/provider/resultsetmetadata.cxx @@ -219,10 +219,6 @@ OUString SAL_CALL ResultSetMetaData::getColumnLabel( sal_Int32 column ) if ( ( column < 1 ) || ( column > m_aProps.getLength() ) ) return OUString(); - OUString aLabel = m_pImpl->m_aColumnData[ column - 1 ].columnLabel; - if ( !aLabel.isEmpty() ) - return aLabel; - return m_aProps.getConstArray()[ column - 1 ].Name; } @@ -242,7 +238,7 @@ OUString SAL_CALL ResultSetMetaData::getColumnName( sal_Int32 column ) // virtual -OUString SAL_CALL ResultSetMetaData::getSchemaName( sal_Int32 column ) +OUString SAL_CALL ResultSetMetaData::getSchemaName( sal_Int32 /*column*/ ) { /* Gets the schema name for the table from which column of this @@ -250,11 +246,7 @@ OUString SAL_CALL ResultSetMetaData::getSchemaName( sal_Int32 column ) Because this feature is not widely supported, the return value for many DBMSs will be an empty string. */ - - if ( ( column < 1 ) || ( column > m_aProps.getLength() ) ) - return OUString(); - - return m_pImpl->m_aColumnData[ column - 1 ].schemaName; + return OUString(); } @@ -273,7 +265,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getScale( sal_Int32 /*column*/ ) // virtual -OUString SAL_CALL ResultSetMetaData::getTableName( sal_Int32 column ) +OUString SAL_CALL ResultSetMetaData::getTableName( sal_Int32 /*column*/ ) { /* Gets the name of the table from which column of this result set @@ -281,16 +273,12 @@ OUString SAL_CALL ResultSetMetaData::getTableName( sal_Int32 column ) Because this feature is not widely supported, the return value for many DBMSs will be an empty string. */ - - if ( ( column < 1 ) || ( column > m_aProps.getLength() ) ) - return OUString(); - - return m_pImpl->m_aColumnData[ column - 1 ].tableName; + return OUString(); } // virtual -OUString SAL_CALL ResultSetMetaData::getCatalogName( sal_Int32 column ) +OUString SAL_CALL ResultSetMetaData::getCatalogName( sal_Int32 /*column*/ ) { /* Gets the catalog name for the table from which column of this @@ -298,11 +286,7 @@ OUString SAL_CALL ResultSetMetaData::getCatalogName( sal_Int32 column ) Because this feature is not widely supported, the return value for many DBMSs will be an empty string. */ - - if ( ( column < 1 ) || ( column > m_aProps.getLength() ) ) - return OUString(); - - return m_pImpl->m_aColumnData[ column - 1 ].catalogName; + return OUString(); } @@ -414,7 +398,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) // virtual -OUString SAL_CALL ResultSetMetaData::getColumnTypeName( sal_Int32 column ) +OUString SAL_CALL ResultSetMetaData::getColumnTypeName( sal_Int32 /*column*/ ) { /* Gets the type name used by this particular data source for the @@ -422,11 +406,7 @@ OUString SAL_CALL ResultSetMetaData::getColumnTypeName( sal_Int32 column ) stored in column is STRUCT, DISTINCT or JAVA_OBJECT, this method returns a fully-qualified SQL type name. */ - - if ( ( column < 1 ) || ( column > m_aProps.getLength() ) ) - return OUString(); - - return m_pImpl->m_aColumnData[ column - 1 ].columnTypeName; + return OUString(); } @@ -452,18 +432,14 @@ sal_Bool SAL_CALL ResultSetMetaData::isDefinitelyWritable( sal_Int32 /*column*/ // virtual -OUString SAL_CALL ResultSetMetaData::getColumnServiceName( sal_Int32 column ) +OUString SAL_CALL ResultSetMetaData::getColumnServiceName( sal_Int32 /*column*/ ) { /* Returns the fully-qualified name of the service whose instances are manufactured if XResultSet::getObject is called to retrieve a value from the column. */ - - if ( ( column < 1 ) || ( column > m_aProps.getLength() ) ) - return OUString(); - - return m_pImpl->m_aColumnData[ column - 1 ].columnServiceName; + return OUString(); } } // namespace ucbhelper -- cgit v1.2.3