Hi, I removed unused code from avmedia module (unusedcode.easy)
Removed functions:
avmedia::priv::MediaWindowBaseImpl::getStopTime() const
avmedia::priv::MediaWindowBaseImpl::setRate(double)
avmedia::priv::MediaWindowBaseImpl::setStopTime(double)
Bartolomé Sánchez.
From 5973baf060e6923fdac8a6a748dcdd26bf49ca85 Mon Sep 17 00:00:00 2001
From: elbarto <aliaselbarto@gmail.com>
Date: Sat, 18 Feb 2012 01:35:37 +0100
Subject: [PATCH] Removed unused code from avmedia.
---
avmedia/source/viewer/mediawindowbase_impl.cxx | 23 -----------------------
avmedia/source/viewer/mediawindowbase_impl.hxx | 4 ----
unusedcode.easy | 3 ---
3 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/avmedia/source/viewer/mediawindowbase_impl.cxx
b/avmedia/source/viewer/mediawindowbase_impl.cxx
index 370eb98..b60a835 100644
--- a/avmedia/source/viewer/mediawindowbase_impl.cxx
+++ b/avmedia/source/viewer/mediawindowbase_impl.cxx
@@ -299,29 +299,6 @@ double MediaWindowBaseImpl::getMediaTime() const
// ---------------------------------------------------------------------
-void MediaWindowBaseImpl::setStopTime( double fTime )
-{
- if( mxPlayer.is() )
- mxPlayer->setStopTime( fTime );
-}
-
-// ---------------------------------------------------------------------
-
-double MediaWindowBaseImpl::getStopTime() const
-{
- return( mxPlayer.is() ? mxPlayer->getStopTime() : 0.0 );
-}
-
-// ---------------------------------------------------------------------
-
-void MediaWindowBaseImpl::setRate( double fRate )
-{
- if( mxPlayer.is() )
- mxPlayer->setRate( fRate );
-}
-
-// ---------------------------------------------------------------------
-
double MediaWindowBaseImpl::getRate() const
{
return( mxPlayer.is() ? mxPlayer->getRate() : 0.0 );
diff --git a/avmedia/source/viewer/mediawindowbase_impl.hxx
b/avmedia/source/viewer/mediawindowbase_impl.hxx
index d8244d9..afd68e4 100644
--- a/avmedia/source/viewer/mediawindowbase_impl.hxx
+++ b/avmedia/source/viewer/mediawindowbase_impl.hxx
@@ -88,10 +88,6 @@ namespace avmedia
void setMediaTime( double fTime );
double getMediaTime() const;
- void setStopTime( double fTime );
- double getStopTime() const;
-
- void setRate( double fRate );
double getRate() const;
void setPlaybackLoop( bool bSet );
diff --git a/unusedcode.easy b/unusedcode.easy
index 78c00f0..8012e32 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -639,9 +639,6 @@ _ZSortFlys::Remove(_ZSortFly const&, unsigned short)
_ZSortFlys_SAR::Replace(_ZSortFly const&, unsigned short)
_ZSortFlys_SAR::Replace(_ZSortFly const*, unsigned short, unsigned short)
_ZSortFlys_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(_ZSortFly const&,
void*), void*)
-avmedia::priv::MediaWindowBaseImpl::getStopTime() const
-avmedia::priv::MediaWindowBaseImpl::setRate(double)
-avmedia::priv::MediaWindowBaseImpl::setStopTime(double)
basebmp::BitmapDevice::setDamageTracker(boost::shared_ptr<basebmp::IBitmapDeviceDamageTracker>
const&)
basebmp::debugDump(boost::shared_ptr<basebmp::BitmapDevice> const&, std::basic_ostream<char,
std::char_traits<char> >&)
basegfx::computeSetDifference(std::__debug::vector<basegfx::B2IBox,
std::allocator<basegfx::B2IBox> >&, basegfx::B2IBox const&, basegfx::B2IBox const&)
--
1.7.2.5
Context
- [PATCH] Removed unused code from avmedia module · Bartolomé Sánchez Salado
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.