removed unused CApplication::ResetPlayTime, PAPlayer::ResetTime() and IPlayer::ResetT...
authorS. Davilla <davilla@4pi.com>
Fri, 20 May 2011 03:54:41 +0000 (23:54 -0400)
committerS. Davilla <davilla@4pi.com>
Fri, 20 May 2011 03:54:41 +0000 (23:54 -0400)
xbmc/Application.cpp
xbmc/Application.h
xbmc/cores/IPlayer.h
xbmc/cores/paplayer/PAPlayer.cpp
xbmc/cores/paplayer/PAPlayer.h

index 6c865dc..9202525 100644 (file)
@@ -5093,12 +5093,6 @@ double CApplication::GetTotalTime() const
   return rc;
 }
 
-void CApplication::ResetPlayTime()
-{
-  if (IsPlaying() && m_pPlayer)
-    m_pPlayer->ResetTime();
-}
-
 void CApplication::StopShutdownTimer()
 {
   if (m_shutdownTimer.IsRunning())
index 38a5e5c..c550eae 100644 (file)
@@ -191,7 +191,6 @@ public:
 
   void SeekPercentage(float percent);
   void SeekTime( double dTime = 0.0 );
-  void ResetPlayTime();
 
   void StopShutdownTimer();
   void ResetShutdownTimers();
index a7c2d60..ef3de4a 100644 (file)
@@ -133,7 +133,6 @@ public:
   virtual float GetActualFPS() { return 0.0f; };
   virtual void SeekTime(__int64 iTime = 0){};
   virtual __int64 GetTime(){ return 0;};
-  virtual void ResetTime() {};
   virtual int GetTotalTime(){ return 0;};
   virtual int GetAudioBitrate(){ return 0;}
   virtual int GetVideoBitrate(){ return 0;}
index 46c62bf..6f3fc9f 100644 (file)
@@ -759,11 +759,6 @@ bool PAPlayer::ProcessPAP()
   return true;
 }
 
-void PAPlayer::ResetTime()
-{
-  m_bytesSentOut = 0;
-}
-
 __int64 PAPlayer::GetTime()
 {
   __int64  timeplus = m_BytesPerSecond ? (__int64)(((float) m_bytesSentOut / (float) m_BytesPerSecond ) * 1000.0) : 0;
index f670bce..5a3192f 100644 (file)
@@ -85,7 +85,6 @@ public:
   virtual int GetSampleRate();
   virtual CStdString GetAudioCodecName();
   virtual __int64 GetTime();
-  virtual void ResetTime();
   virtual void SeekTime(__int64 iTime = 0);
   // Skip to next track/item inside the current media (if supported).
   virtual bool SkipNext();