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

loplugin:unusedmethods

Change-Id: I3ffd9142fed98e4df75c2c28f8a025be3e8eb803
Reviewed-on: https://gerrit.libreoffice.org/46687Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 8960ecc6
......@@ -43,8 +43,6 @@ namespace wrapper
int getTime() const;
bool isPlaying() const;
float getRate() const;
void setVolume( int volume );
int getVolume() const;
......
......@@ -55,16 +55,6 @@ VLCPlayer::VLCPlayer( const rtl::OUString& url,
mPlayer.setMouseHandling( false );
}
unsigned VLCPlayer::getWidth() const
{
return mPlayer.getWidth();
}
unsigned VLCPlayer::getHeight() const
{
return mPlayer.getHeight();
}
void SAL_CALL VLCPlayer::start()
{
::osl::MutexGuard aGuard(m_aMutex);
......@@ -92,12 +82,6 @@ double SAL_CALL VLCPlayer::getDuration()
return static_cast<double>( mMedia.getDuration() ) / MS_IN_SEC;
}
void VLCPlayer::setScale( float factor )
{
::osl::MutexGuard aGuard(m_aMutex);
mPlayer.setScale( factor );
}
void SAL_CALL VLCPlayer::setMediaTime( double fTime )
{
::osl::MutexGuard aGuard(m_aMutex);
......
......@@ -55,10 +55,7 @@ public:
wrapper::EventHandler& eh );
void setVideoSize( unsigned width, unsigned height );
unsigned getWidth() const;
unsigned getHeight() const;
void setScale( float factor );
void setWindowID( const intptr_t windowID );
void SAL_CALL start() override;
......
......@@ -204,11 +204,6 @@ namespace wrapper
return libvlc_media_player_is_playing( mPlayer ) == 1;
}
float Player::getRate() const
{
return libvlc_media_player_get_rate( mPlayer );
}
void Player::setVolume( int volume )
{
libvlc_audio_set_volume( mPlayer, volume );
......
......@@ -86,35 +86,6 @@ using namespace ::comphelper;
namespace dbaccess
{
// VosMutexFacade
VosMutexFacade::VosMutexFacade( ::osl::Mutex& _rMutex )
:m_rMutex( _rMutex )
{
}
void VosMutexFacade::doAcquire( sal_uInt32 nLockCount )
{
assert( 1 == nLockCount ); (void) nLockCount;
m_rMutex.acquire();
}
sal_uInt32 VosMutexFacade::doRelease( bool bUnlockAll )
{
assert( !bUnlockAll ); (void) bUnlockAll;
m_rMutex.release();
return 1;
}
bool VosMutexFacade::tryToAcquire()
{
return m_rMutex.tryToAcquire();
}
bool VosMutexFacade::IsCurrentThread() const
{
return true;
}
// DocumentStorageAccess
class DocumentStorageAccess : public ::cppu::WeakImplHelper< XDocumentSubStorageSupplier
, XTransactionListener >
......
......@@ -117,28 +117,6 @@ struct AsciiPropertyValue
class ODatabaseContext;
class OSharedConnectionManager;
// VosMutexFacade
/** a class which provides an SolarMutex interface to an OSL-based mutex
*/
class VosMutexFacade : public comphelper::SolarMutex
{
public:
/** beware of life time: the mutex you pass here must live as least as long
as the VosMutexFacade instance lives.
*/
explicit VosMutexFacade( ::osl::Mutex& _rMutex );
virtual bool tryToAcquire() override;
virtual bool IsCurrentThread() const override;
protected:
virtual void doAcquire( sal_uInt32 nLockCount ) override;
virtual sal_uInt32 doRelease( bool bUnlockAll ) override;
private:
::osl::Mutex& m_rMutex;
};
// ODatabaseModelImpl
typedef ::utl::SharedUNOComponent< css::embed::XStorage > SharedStorage;
......
......@@ -317,10 +317,6 @@ public:
const OUString& rFalse,
sal_uInt16 nSubType = TYP_HIDDENTXTFLD);
// nSubType = TYP_CONDTXTFLD
SwHiddenTextField(SwHiddenTextFieldType*,
const OUString& rCondTrueFalse); // value sample: " IF A == B \"TrueText\" \"FalseText\""
virtual OUString GetFieldName() const override;
void Evaluate(SwDoc*);
......
......@@ -849,7 +849,6 @@ public:
long GetLeftMargin() const;
long GetRightMargin() const;
void SetTopBottomMargins( long, long );
void SetBottomTopMargins( long, long );
void SetLeftRightMargins( long, long );
void SetRightLeftMargins( long, long );
long GetPrtLeft() const;
......@@ -859,9 +858,7 @@ public:
bool SetMinLeft( long );
bool SetMaxBottom( long );
bool SetMaxRight( long );
bool SetMinTop( long );
void MakeBelowPos( const SwFrame*, const SwFrame*, bool );
void MakeUpperPos( const SwFrame*, const SwFrame*, bool );
void MakeLeftPos( const SwFrame*, const SwFrame*, bool );
void MakeRightPos( const SwFrame*, const SwFrame*, bool );
bool IsNeighbourFrame() const
......
......@@ -82,22 +82,6 @@ bool SwFrame::SetMaxBottom( long nDeadline )
return false;
}
bool SwFrame::SetMinTop( long nDeadline )
{
SwTwips nDiff = nDeadline - getFrameArea().Top();
if( nDiff > 0 )
{
SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this);
aFrm.Top( nDeadline );
SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this);
aPrt.Height( aPrt.Height() - nDiff );
return true;
}
return false;
}
bool SwFrame::SetMaxRight( long nDeadline )
{
SwTwips nDiff = getFrameArea().Left() + getFrameArea().Width() - nDeadline;
......@@ -135,28 +119,6 @@ void SwFrame::MakeBelowPos( const SwFrame* pUp, const SwFrame* pPrv, bool bNotif
}
}
void SwFrame::MakeUpperPos( const SwFrame* pUp, const SwFrame* pPrv, bool bNotify )
{
SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this);
if( pPrv )
{
aFrm.Pos( pPrv->getFrameArea().Pos() );
aFrm.Pos().Y() -= aFrm.Height();
}
else
{
aFrm.Pos( pUp->getFrameArea().Pos() );
aFrm.Pos() += pUp->getFramePrintArea().Pos();
aFrm.Pos().Y() += pUp->getFramePrintArea().Height() - aFrm.Height();
}
if( bNotify )
{
aFrm.Pos().Y() -= 1;
}
}
void SwFrame::MakeLeftPos( const SwFrame* pUp, const SwFrame* pPrv, bool bNotify )
{
SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this);
......@@ -207,13 +169,6 @@ void SwFrame::SetTopBottomMargins( long nTop, long nBot )
aPrt.Height( getFrameArea().Height() - nTop - nBot );
}
void SwFrame::SetBottomTopMargins( long nBot, long nTop )
{
SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this);
aPrt.Top( nTop );
aPrt.Height( getFrameArea().Height() - nTop - nBot );
}
void SwFrame::SetLeftRightMargins( long nLeft, long nRight)
{
SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this);
......
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