Kaydet (Commit) cb34e608 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods

Change-Id: I027adbe65edd5f07534bb36f9f54c55f30ba516e
Reviewed-on: https://gerrit.libreoffice.org/50998Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c9c0f257
...@@ -218,9 +218,9 @@ include/test/sheet/xstyleloader.hxx:27 ...@@ -218,9 +218,9 @@ include/test/sheet/xstyleloader.hxx:27
class com::sun::star::uno::Reference<class com::sun::star::lang::XComponent> apitest::XStyleLoader::getTargetComponent() class com::sun::star::uno::Reference<class com::sun::star::lang::XComponent> apitest::XStyleLoader::getTargetComponent()
include/test/sheet/xusedareacursor.hxx:25 include/test/sheet/xusedareacursor.hxx:25
class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> apitest::XUsedAreaCursor::init() class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> apitest::XUsedAreaCursor::init()
include/tools/color.hxx:155 include/tools/color.hxx:151
class SvStream & Color::Read(class SvStream &) class SvStream & Color::Read(class SvStream &)
include/tools/color.hxx:156 include/tools/color.hxx:152
class SvStream & Color::Write(class SvStream &) const class SvStream & Color::Write(class SvStream &) const
include/tools/multisel.hxx:93 include/tools/multisel.hxx:93
_Bool StringRangeEnumerator::insertRange(int,int,_Bool) _Bool StringRangeEnumerator::insertRange(int,int,_Bool)
......
...@@ -2810,11 +2810,6 @@ void EditEngine::SetHoriAlignIgnoreTrailingWhitespace(bool bEnabled) ...@@ -2810,11 +2810,6 @@ void EditEngine::SetHoriAlignIgnoreTrailingWhitespace(bool bEnabled)
pImpEditEngine->SetHoriAlignIgnoreTrailingWhitespace(bEnabled); pImpEditEngine->SetHoriAlignIgnoreTrailingWhitespace(bEnabled);
} }
bool EditEngine::IsHoriAlignIgnoreTrailingWhitespace() const
{
return pImpEditEngine->IsHoriAlignIgnoreTrailingWhitespace();
}
EFieldInfo::EFieldInfo() EFieldInfo::EFieldInfo()
{ {
} }
......
...@@ -623,7 +623,6 @@ public: ...@@ -623,7 +623,6 @@ public:
// tdf#115639 compatibility flag // tdf#115639 compatibility flag
void SetHoriAlignIgnoreTrailingWhitespace(bool bEnabled); void SetHoriAlignIgnoreTrailingWhitespace(bool bEnabled);
bool IsHoriAlignIgnoreTrailingWhitespace() const;
}; };
#endif // INCLUDED_EDITENG_EDITENG_HXX #endif // INCLUDED_EDITENG_EDITENG_HXX
......
...@@ -261,40 +261,6 @@ Reference< XInterface > MysqlCDriver_CreateInstance(const Reference< XMultiServi ...@@ -261,40 +261,6 @@ Reference< XInterface > MysqlCDriver_CreateInstance(const Reference< XMultiServi
return(*(new MysqlCDriver(_rxFactory))); return(*(new MysqlCDriver(_rxFactory)));
} }
void release(oslInterlockedCount& _refCount,
::cppu::OBroadcastHelper& rBHelper,
Reference< XInterface >& _xInterface,
css::lang::XComponent* _pObject)
{
if (osl_atomic_decrement(&_refCount) == 0) {
osl_atomic_increment(&_refCount);
if (!rBHelper.bDisposed && !rBHelper.bInDispose) {
// remember the parent
Reference< XInterface > xParent;
{
::osl::MutexGuard aGuard(rBHelper.rMutex);
xParent = _xInterface;
_xInterface = nullptr;
}
// First dispose
_pObject->dispose();
// only the alive ref holds the object
OSL_ASSERT(_refCount == 1);
// release the parent in the destructor
if (xParent.is()) {
::osl::MutexGuard aGuard(rBHelper.rMutex);
_xInterface = xParent;
}
}
} else {
osl_atomic_increment(&_refCount);
}
}
void checkDisposed(bool _bThrow) void checkDisposed(bool _bThrow)
{ {
if (_bThrow) { if (_bThrow) {
......
...@@ -50,11 +50,6 @@ namespace connectivity ...@@ -50,11 +50,6 @@ namespace connectivity
{ {
namespace mysqlc namespace mysqlc
{ {
void release(oslInterlockedCount& _refCount,
::cppu::OBroadcastHelper& rBHelper,
css::uno::Reference< css::uno::XInterface >& _xInterface,
css::lang::XComponent* _pObject);
/// @throws css::lang::DisposedException /// @throws css::lang::DisposedException
void checkDisposed(bool _bThrow); void checkDisposed(bool _bThrow);
......
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