[Libreoffice-commits] .: connectivity/inc connectivity/source unusedcode.easy
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Aug 23 06:25:54 PDT 2012
connectivity/inc/connectivity/CommonTools.hxx | 1
connectivity/source/commontools/CommonTools.cxx | 62 ------------------------
unusedcode.easy | 1
3 files changed, 64 deletions(-)
New commits:
commit ff74564b39c6f0b2063158ffe7eb8faa99f12c4b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Aug 23 11:23:16 2012 +0100
callcatcher: update unusedcode
Change-Id: I18f823b99349002bb148d474a6a9aabdf2d419ef
diff --git a/connectivity/inc/connectivity/CommonTools.hxx b/connectivity/inc/connectivity/CommonTools.hxx
index 13999ab..ac1c0d9 100644
--- a/connectivity/inc/connectivity/CommonTools.hxx
+++ b/connectivity/inc/connectivity/CommonTools.hxx
@@ -50,7 +50,6 @@ namespace connectivity
return match(rWild.getStr(), rStr.getStr(), cEscape);
}
//------------------------------------------------------------------------------
- OOO_DLLPUBLIC_DBTOOLS rtl::OUString toString(const ::com::sun::star::uno::Any& rValue);
OOO_DLLPUBLIC_DBTOOLS rtl::OUString toDateString(const ::com::sun::star::util::Date& rDate);
OOO_DLLPUBLIC_DBTOOLS rtl::OUString toTimeString(const ::com::sun::star::util::Time& rTime);
OOO_DLLPUBLIC_DBTOOLS rtl::OUString toDateTimeString(const ::com::sun::star::util::DateTime& rDateTime);
diff --git a/connectivity/source/commontools/CommonTools.cxx b/connectivity/source/commontools/CommonTools.cxx
index 2764c6d..d8bb7ff 100644
--- a/connectivity/source/commontools/CommonTools.cxx
+++ b/connectivity/source/commontools/CommonTools.cxx
@@ -152,68 +152,6 @@ namespace connectivity
return rtl::OUString::createFromAscii(s);
}
-
- //--------------------------------------------------------------------------------------------------
- rtl::OUString toString(const Any& rValue)
- {
- rtl::OUString aRes;
- TypeClass aDestinationClass = rValue.getValueType().getTypeClass();
-
- switch (aDestinationClass)
- {
- case TypeClass_CHAR:
- aRes = ::rtl::OUString::valueOf(*(sal_Unicode*)rValue.getValue());
- break;
- case TypeClass_FLOAT:
- aRes = ::rtl::OUString::valueOf(*(float*)rValue.getValue());
- break;
- case TypeClass_DOUBLE:
- aRes = ::rtl::OUString::valueOf(*(double*)rValue.getValue());
- break;
- case TypeClass_BOOLEAN:
- aRes = ::rtl::OUString::valueOf((sal_Int32)*(sal_Bool*)rValue.getValue());
- break;
- case TypeClass_BYTE:
- case TypeClass_SHORT:
- case TypeClass_LONG:
- aRes = ::rtl::OUString::valueOf(*(sal_Int32*)rValue.getValue());
- break;
- case TypeClass_HYPER:
- {
- sal_Int64 nValue = 0;
- OSL_VERIFY( rValue >>= nValue );
- aRes = ::rtl::OUString::valueOf(nValue);
- }
- case TypeClass_STRING:
- rValue >>= aRes;
- break;
- case TypeClass_STRUCT:
- if (rValue.getValueType() == ::getCppuType((const ::com::sun::star::util::Date*)0))
- {
- ::com::sun::star::util::Date aDate;
- rValue >>= aDate;
- aRes = toDateString(aDate);
- }
- else if (rValue.getValueType() == ::getCppuType((const ::com::sun::star::util::DateTime*)0))
- {
- ::com::sun::star::util::DateTime aDT;
- rValue >>= aDT;
- aRes = toDateTimeString(aDT);
- }
- else if (rValue.getValueType() == ::getCppuType((const ::com::sun::star::util::Time*)0))
- {
- ::com::sun::star::util::Time aTime;
- rValue >>= aTime;
- aRes = toTimeString(aTime);
- }
-
- break;
- default:
- ;
- }
- return aRes;
- }
-
// -----------------------------------------------------------------------------
::rtl::Reference< jvmaccess::VirtualMachine > getJavaVM(const Reference<XMultiServiceFactory >& _rxFactory)
{
diff --git a/unusedcode.easy b/unusedcode.easy
index e541859..f0992ae 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -68,7 +68,6 @@ connectivity::file::OStatement_Base::reset()
connectivity::mozab::MQueryHelper::next()
connectivity::sdbcx::OGroup::OGroup(rtl::OUString const&, unsigned char)
connectivity::sdbcx::OGroup::OGroup(unsigned char)
-connectivity::toString(com::sun::star::uno::Any const&)
dbtools::getConnection(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
formula::FormulaTokenIterator::First()
framework::OReadMenuDocumentHandler::getServiceFactory()
More information about the Libreoffice-commits
mailing list