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
0ea54aed
Kaydet (Commit)
0ea54aed
authored
Agu 03, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove some unused defines
Change-Id: I85a9a2bc12681e13fc482374165ff9bd6858dc93
üst
69df7017
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
2 additions
and
98 deletions
+2
-98
find-unused-defines.sh
bin/find-unused-defines.sh
+1
-1
apitools.hxx
dbaccess/source/inc/apitools.hxx
+0
-3
xinterface.hxx
framework/inc/macros/xinterface.hxx
+0
-16
xtypeprovider.hxx
framework/inc/macros/xtypeprovider.hxx
+0
-58
languagetag.cxx
i18nlangtag/source/languagetag/languagetag.cxx
+0
-1
cclass_unicode.hxx
i18npool/inc/cclass_unicode.hxx
+0
-1
transliteration_caseignore.hxx
i18npool/inc/transliteration_caseignore.hxx
+0
-1
macros.hxx
include/toolkit/helper/macros.hxx
+0
-16
XConnectionBroadcaster.idl
udkapi/com/sun/star/connection/XConnectionBroadcaster.idl
+1
-1
No files found.
bin/find-unused-defines.sh
Dosyayı görüntüle @
0ea54aed
...
...
@@ -19,9 +19,9 @@
(
git
grep
-hP
'^\w*#define\s+\w+.*\\'
--
"[!e][!x][!t]*"
\
&&
\
git
grep
-hP
'^\w*#define\s+\w+\s*$'
--
"[!e][!x][!t]*"
)
\
|
sed
-r
's/[ ]*#define[ ]+([a-zA-Z0-9_]+).*/\1/'
\
|
grep
-v
'_idl'
\
|
grep
-vE
'^INCLUDED_'
\
|
sed
-r
's/[ ]*#define[ ]+([a-zA-Z0-9_]+).*/\1/'
\
|
sort
\
|
uniq
\
| xargs
-Ixxx
-n
1
-P
8 sh
-c
\
...
...
dbaccess/source/inc/apitools.hxx
Dosyayı görüntüle @
0ea54aed
...
...
@@ -182,9 +182,6 @@ public:
virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; \
static ::com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId() \
#define DECLARE_GETTYPES( ) \
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException, std::exception);
#define IMPLEMENT_IMPLEMENTATION_ID( classname ) \
::com::sun::star::uno::Sequence< sal_Int8 > classname::getUnoTunnelImplementationId() \
{ \
...
...
framework/inc/macros/xinterface.hxx
Dosyayı görüntüle @
0ea54aed
...
...
@@ -62,18 +62,6 @@ ________________________________________________________________________________
BASECLASS::release(); \
}
// private
// implementation of XInterface::queryInterface() without any other interfaces!
#define PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_PURE( CLASS, BASECLASS ) \
::com::sun::star::uno::Any SAL_CALL CLASS::queryInterface( const ::com::sun::star::uno::Type& aType ) throw( ::com::sun::star::uno::RuntimeException ) \
{ \
/* Attention: Don't use mutex or guard in this method!!! Is a method of XInterface. */
\
/* I have no own supported interfaces ... */
\
/* ... ask baseclass for interfaces! */
\
return BASECLASS::queryInterface( aType ); \
}
// private
// implementation of XInterface::queryInterface() with max. 12 other interfaces!
...
...
@@ -123,10 +111,6 @@ ________________________________________________________________________________
// private
// complete implementation of XInterface for different use cases
#define PRIVATE_DEFINE_XINTERFACE_PURE( CLASS, BASECLASS ) \
PRIVATE_DEFINE_XINTERFACE_ACQUIRE_RELEASE( CLASS, BASECLASS ) \
PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE_PURE( CLASS, BASECLASS )
#define PRIVATE_DEFINE_XINTERFACE( CLASS, BASECLASS, INTERFACES ) \
PRIVATE_DEFINE_XINTERFACE_ACQUIRE_RELEASE( CLASS, BASECLASS ) \
PRIVATE_DEFINE_XINTERFACE_QUERYINTERFACE( CLASS, BASECLASS, INTERFACES )
...
...
framework/inc/macros/xtypeprovider.hxx
Dosyayı görüntüle @
0ea54aed
...
...
@@ -138,56 +138,6 @@ ________________________________________________________________________________
return *pTypeCollection; \
}
// private
// implementation of XTypeProvider::getTypes() with using max. 12 interfaces + baseclass!
#define PRIVATE_DEFINE_XTYPEPROVIDER_GETTYPES_BASECLASS( CLASS, BASECLASS, TYPES ) \
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL CLASS::getTypes() throw( ::com::sun::star::uno::RuntimeException ) \
{ \
/* Optimize this method ! */
\
/* We initialize a static variable only one time. */
\
/* And we don't must use a mutex at every call! */
\
/* For the first call; pTypeCollection is NULL - */
\
/* for the second call pTypeCollection is different from NULL! */
\
static ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >* pTypeCollection = NULL; \
if ( pTypeCollection == NULL ) \
{ \
/* Ready for multithreading; get global mutex for first call of this method only! see before */
\
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); \
/* Control these pointer again ... it can be, that another instance will be faster then these! */
\
if ( pTypeCollection == NULL ) \
{ \
/* Create static typecollection for my own interfaces! */
\
static ::cppu::OTypeCollection aTypeCollection TYPES; \
/* Copy all items from my list sequences and from my baseclass */
\
/* to one result list! */
\
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > seqTypes1 = aTypeCollection.getTypes(); \
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > seqTypes2 = BASECLASS::getTypes(); \
sal_Int32 nCount1 = seqTypes1.getLength(); \
sal_Int32 nCount2 = seqTypes2.getLength(); \
static ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > seqResult ( nCount1+nCount2 ); \
sal_Int32 nSource = 0; \
sal_Int32 nDestination= 0; \
while( nSource<nCount1 ) \
{ \
seqResult[nDestination] = seqTypes1[nSource]; \
++nSource; \
++nDestination; \
} \
nSource = 0; \
while( nSource<nCount2 ) \
{ \
seqResult[nDestination] = seqTypes2[nSource]; \
++nSource; \
++nDestination; \
} \
/* ... and set his address to static pointer! */
\
pTypeCollection = &seqResult; \
} \
} \
return *pTypeCollection; \
}
// private
// help macros to replace TYPES in getTypes() [see before]
...
...
@@ -241,10 +191,6 @@ ________________________________________________________________________________
// private
// complete implementation of XTypeProvider
#define PRIVATE_DEFINE_XTYPEPROVIDER_PURE( CLASS ) \
PRIVATE_DEFINE_XTYPEPROVIDER_GETIMPLEMENTATIONID( CLASS ) \
PRIVATE_DEFINE_XTYPEPROVIDER_GETTYPES( CLASS, cppu::UnoType<com::sun::star::lang::XTypeProvider>::get())
#define PRIVATE_DEFINE_XTYPEPROVIDER( CLASS, TYPES ) \
PRIVATE_DEFINE_XTYPEPROVIDER_GETIMPLEMENTATIONID( CLASS ) \
PRIVATE_DEFINE_XTYPEPROVIDER_GETTYPES( CLASS, TYPES )
...
...
@@ -253,10 +199,6 @@ ________________________________________________________________________________
PRIVATE_DEFINE_XTYPEPROVIDER_GETIMPLEMENTATIONID( CLASS ) \
PRIVATE_DEFINE_XTYPEPROVIDER_GETTYPES_LARGE( CLASS, TYPES_FIRST, TYPES_SECOND )
#define PRIVATE_DEFINE_XTYPEPROVIDER_BASECLASS( CLASS, BASECLASS, TYPES ) \
PRIVATE_DEFINE_XTYPEPROVIDER_GETIMPLEMENTATIONID( CLASS ) \
PRIVATE_DEFINE_XTYPEPROVIDER_GETTYPES_BASECLASS( CLASS, BASECLASS, TYPES )
// public
// declaration of XTypeProvider
...
...
i18nlangtag/source/languagetag/languagetag.cxx
Dosyayı görüntüle @
0ea54aed
...
...
@@ -26,7 +26,6 @@
#if defined(ENABLE_LIBLANGTAG)
#if LIBLANGTAG_INLINE_FIX
#define LT_HAVE_INLINE
#endif
#include <liblangtag/langtag.h>
#else
...
...
i18npool/inc/cclass_unicode.hxx
Dosyayı görüntüle @
0ea54aed
...
...
@@ -25,7 +25,6 @@
#include <cppuhelper/implbase2.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#define TRANSLITERATION_casemapping
#include <transliteration_body.hxx>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
uno
{
...
...
i18npool/inc/transliteration_caseignore.hxx
Dosyayı görüntüle @
0ea54aed
...
...
@@ -19,7 +19,6 @@
#ifndef INCLUDED_I18NPOOL_INC_TRANSLITERATION_CASEIGNORE_HXX
#define INCLUDED_I18NPOOL_INC_TRANSLITERATION_CASEIGNORE_HXX
#define TRANSLITERATION_UPPER_LOWER
#include "transliteration_body.hxx"
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
i18n
{
...
...
include/toolkit/helper/macros.hxx
Dosyayı görüntüle @
0ea54aed
...
...
@@ -198,22 +198,6 @@ IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD_BODY( ClassName, InterfaceName, MethodNa
void ClassName::MethodName( const EventType& evt ) throw(::com::sun::star::uno::RuntimeException, std::exception) \
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD_BODY( ClassName, InterfaceName, MethodName, EventType )
#define DECLIMPL_SUPPORTS_SERVICE( ) \
sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE \
{ \
::com::sun::star::uno::Sequence< OUString > aServiceNames( getSupportedServiceNames() ); \
const OUString* pSupported = aServiceNames.getConstArray(); \
const OUString* pSupportedEnd = pSupported + aServiceNames.getLength(); \
for ( ; pSupported != pSupportedEnd; ++pSupported ) \
if ( *pSupported == rServiceName ) \
return sal_True; \
return sal_False; \
}
#define DECLIMPL_SERVICEINFO_DERIVED( ImplName, BaseClass, ServiceName ) \
OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { return OUString("stardiv.Toolkit." #ImplName ); } \
::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE \
...
...
udkapi/com/sun/star/connection/XConnectionBroadcaster.idl
Dosyayı görüntüle @
0ea54aed
...
...
@@ -16,7 +16,7 @@
*
except
in
compliance
with
the
License
.
You
may
obtain
a
copy
of
*
the
License
at
http
:
//
www
.
apache.org/licenses/LICENSE-2.0
.
*/
#
ifndef
_COM_SUN_STAR_CONNECTION_XCONNECTIONBROADCASTER_IDL_
_
#
ifndef
_COM_SUN_STAR_CONNECTION_XCONNECTIONBROADCASTER_IDL_
#
define
_COM_SUN_STAR_CONNECTION_XCONNECTIONBROADCASTER_IDL_
#
include
<
com
/
sun
/
star
/
io
/
XStreamListener
.
idl>
...
...
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