فهرست منبع

Unused method

Source commit: 75b154b8d8e76eae24b57cc365036afb77d4496b
Martin Prikryl 8 سال پیش
والد
کامیت
6f6f56168f
2فایلهای تغییر یافته به همراه0 افزوده شده و 17 حذف شده
  1. 0 16
      source/core/FileOperationProgress.cpp
  2. 0 1
      source/core/FileOperationProgress.h

+ 0 - 16
source/core/FileOperationProgress.cpp

@@ -551,22 +551,6 @@ TDateTime __fastcall TFileOperationProgressType::TimeExpected()
   }
 }
 //---------------------------------------------------------------------------
-TDateTime __fastcall TFileOperationProgressType::TotalTimeExpected()
-{
-  DebugAssert(TotalSizeSet);
-  unsigned int CurCps = CPS();
-  // sanity check
-  if ((CurCps > 0) && (TotalSize > TotalSkipped))
-  {
-    return TDateTime((double)((double)(TotalSize - TotalSkipped) / CurCps) /
-      SecsPerDay);
-  }
-  else
-  {
-    return 0;
-  }
-}
-//---------------------------------------------------------------------------
 TDateTime __fastcall TFileOperationProgressType::TotalTimeLeft()
 {
   DebugAssert(TotalSizeSet);

+ 0 - 1
source/core/FileOperationProgress.h

@@ -147,7 +147,6 @@ public:
   TDateTime __fastcall TimeElapsed();
   // only current file
   TDateTime __fastcall TimeExpected();
-  TDateTime __fastcall TotalTimeExpected();
   TDateTime __fastcall TotalTimeLeft();
   int __fastcall TransferProgress();
   int __fastcall OverallProgress();