Kaydet (Commit) 8ecea48c authored tarafından Thomas Arnhold's avatar Thomas Arnhold

unusedcode.easy: desktop: singleton_entries is completely unused

üst 530cfd92
......@@ -66,10 +66,8 @@ extern sdecl::ServiceDecl const serviceDecl;
namespace dp_manager {
namespace factory {
extern sdecl::ServiceDecl const serviceDecl;
bool singleton_entries( uno::Reference<registry::XRegistryKey> const& );
}
extern sdecl::ServiceDecl const serviceDecl;
bool singleton_entries( uno::Reference<registry::XRegistryKey> const& );
}
namespace dp_log {
......@@ -78,7 +76,6 @@ extern sdecl::ServiceDecl const serviceDecl;
namespace dp_info {
extern sdecl::ServiceDecl const serviceDecl;
bool singleton_entries( uno::Reference<registry::XRegistryKey> const& );
}
extern "C" {
......
......@@ -1506,28 +1506,6 @@ extern sdecl::ServiceDecl const serviceDecl(
"com.sun.star.comp.deployment.ExtensionManager",
"com.sun.star.comp.deployment.ExtensionManager");
//------------------------------------------------------------------------------
bool singleton_entries(
uno::Reference< registry::XRegistryKey > const & xRegistryKey )
{
try {
uno::Reference< registry::XRegistryKey > xKey(
xRegistryKey->createKey(
serviceDecl.getImplementationName() +
// xxx todo: use future generated function to get singleton name
OUSTR("/UNO/SINGLETONS/"
"com.sun.star.deployment.ExtensionManager") ) );
xKey->setStringValue( serviceDecl.getSupportedServiceNames()[0] );
return true;
}
catch (const registry::InvalidRegistryException & exc) {
(void) exc; // avoid warnings
OSL_FAIL( ::rtl::OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
return false;
}
}
// XModifyBroadcaster
//______________________________________________________________________________
void ExtensionManager::addModifyListener(
......
......@@ -26,9 +26,7 @@
*
************************************************************************/
#include <cppuhelper/implbase3.hxx>
#include "comphelper/servicedecl.hxx"
#include "com/sun/star/deployment/UpdateInformationProvider.hpp"
......@@ -338,28 +336,6 @@ extern sdecl::ServiceDecl const serviceDecl(
"com.sun.star.comp.deployment.PackageInformationProvider",
"com.sun.star.comp.deployment.PackageInformationProvider" );
//------------------------------------------------------------------------------
bool singleton_entries(
uno::Reference< registry::XRegistryKey > const & xRegistryKey )
{
try {
uno::Reference< registry::XRegistryKey > xKey(
xRegistryKey->createKey(
serviceDecl.getImplementationName() +
// xxx todo: use future generated function to get singleton name
UNISTRING("/UNO/SINGLETONS/"
"com.sun.star.deployment.PackageInformationProvider") ) );
xKey->setStringValue( serviceDecl.getSupportedServiceNames()[0] );
return true;
}
catch (registry::InvalidRegistryException & exc) {
(void) exc; // avoid warnings
OSL_FAIL( ::rtl::OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
return false;
}
}
} // namespace dp_info
......
......@@ -82,28 +82,6 @@ extern sdecl::ServiceDecl const serviceDecl(
"com.sun.star.comp.deployment.PackageManagerFactory",
"com.sun.star.comp.deployment.PackageManagerFactory" );
//==============================================================================
bool singleton_entries(
Reference<registry::XRegistryKey> const & xRegistryKey )
{
try {
Reference<registry::XRegistryKey> xKey(
xRegistryKey->createKey(
serviceDecl.getImplementationName() +
// xxx todo: use future generated function to get singleton name
OUSTR("/UNO/SINGLETONS/"
"com.sun.star.deployment.thePackageManagerFactory") ) );
xKey->setStringValue( serviceDecl.getSupportedServiceNames()[0] );
return true;
}
catch (const registry::InvalidRegistryException & exc) {
(void) exc; // avoid warnings
OSL_FAIL( ::rtl::OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
return false;
}
}
//______________________________________________________________________________
PackageManagerFactoryImpl::PackageManagerFactoryImpl(
Reference<XComponentContext> const & xComponentContext )
......
......@@ -1123,8 +1123,6 @@ dbtools::StatementComposer::getDisposeComposer() const
dbtools::getComposedRowSetStatement(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&, com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&, unsigned char, unsigned char)
dbtools::getConnection(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
dbtools::throwFunctionNotSupportedException(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&, com::sun::star::uno::Any const&)
dp_info::singleton_entries(com::sun::star::uno::Reference<com::sun::star::registry::XRegistryKey> const&)
dp_manager::factory::singleton_entries(com::sun::star::uno::Reference<com::sun::star::registry::XRegistryKey> const&)
drawinglayer::attribute::SdrFillTextAttribute::isDefault() const
drawinglayer::attribute::SdrFormTextAttribute::getFormTextShdwTransp() const
drawinglayer::attribute::SdrTextAttribute::getPropertiesVersion() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment