From 695dca68537e56e66657a43667793af5eb4b6695 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Fri, 24 Feb 2012 02:18:32 +0100 Subject: unusedcode.easy: OwnerLock includes this feature --- sot/inc/sot/object.hxx | 1 - sot/source/base/object.cxx | 12 ------------ 2 files changed, 13 deletions(-) (limited to 'sot') diff --git a/sot/inc/sot/object.hxx b/sot/inc/sot/object.hxx index 1d98d44f916b..326d651b6ea6 100644 --- a/sot/inc/sot/object.hxx +++ b/sot/inc/sot/object.hxx @@ -313,7 +313,6 @@ public: sal_uInt16 GetStrongLockCount() const { return nStrongLockCount; } void OwnerLock( sal_Bool bLock ); - void RemoveOwnerLock(); sal_Bool DoClose(); sal_Bool IsInClose() const { return bInClose; } diff --git a/sot/source/base/object.cxx b/sot/source/base/object.cxx index e1d3f67571a7..0c293fe42bac 100644 --- a/sot/source/base/object.cxx +++ b/sot/source/base/object.cxx @@ -146,18 +146,6 @@ void SotObject::OwnerLock } } -void SotObject::RemoveOwnerLock() -{ - if ( nOwnerLockCount ) - { - --nOwnerLockCount; - ReleaseRef(); - } - else { - OSL_FAIL("OwnerLockCount underflow!"); - } -} - //========================================================================= sal_Bool SotObject::DoClose() { -- cgit