Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8ecea48c
Kaydet (Commit)
8ecea48c
authored
Şub 18, 2012
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
unusedcode.easy: desktop: singleton_entries is completely unused
üst
530cfd92
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
73 deletions
+0
-73
dp_services.cxx
desktop/source/deployment/dp_services.cxx
+0
-3
dp_extensionmanager.cxx
desktop/source/deployment/manager/dp_extensionmanager.cxx
+0
-22
dp_informationprovider.cxx
desktop/source/deployment/manager/dp_informationprovider.cxx
+0
-24
dp_managerfac.cxx
desktop/source/deployment/manager/dp_managerfac.cxx
+0
-22
unusedcode.easy
unusedcode.easy
+0
-2
No files found.
desktop/source/deployment/dp_services.cxx
Dosyayı görüntüle @
8ecea48c
...
...
@@ -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"
{
...
...
desktop/source/deployment/manager/dp_extensionmanager.cxx
Dosyayı görüntüle @
8ecea48c
...
...
@@ -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
(
...
...
desktop/source/deployment/manager/dp_informationprovider.cxx
Dosyayı görüntüle @
8ecea48c
...
...
@@ -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
...
...
desktop/source/deployment/manager/dp_managerfac.cxx
Dosyayı görüntüle @
8ecea48c
...
...
@@ -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
)
...
...
unusedcode.easy
Dosyayı görüntüle @
8ecea48c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment