瀏覽代碼

Unused code

Source commit: 92f139605347f063d1c9f983c4ef6e1052ecd167
Martin Prikryl 2 年之前
父節點
當前提交
d8d0adfff6
共有 2 個文件被更改,包括 4 次插入11 次删除
  1. 2 9
      source/core/SftpFileSystem.cpp
  2. 2 2
      source/core/SftpFileSystem.h

+ 2 - 9
source/core/SftpFileSystem.cpp

@@ -2241,8 +2241,8 @@ inline void __fastcall TSFTPFileSystem::BusyEnd()
   }
 }
 //---------------------------------------------------------------------------
-unsigned long __fastcall TSFTPFileSystem::TransferBlockSize(unsigned long Overhead,
-  TFileOperationProgressType * OperationProgress, unsigned long MaxPacketSize)
+unsigned long __fastcall TSFTPFileSystem::TransferBlockSize(
+  unsigned long Overhead, TFileOperationProgressType * OperationProgress)
 {
   const unsigned long MinPacketSize = 32768;
   // size + message number + type
@@ -2252,13 +2252,6 @@ unsigned long __fastcall TSFTPFileSystem::TransferBlockSize(unsigned long Overhe
   unsigned long CPSRounded = TEncryption::RoundToBlock(OperationProgress->CPS());
   unsigned long Result = CPSRounded;
 
-  if ((MaxPacketSize > 0) &&
-      ((MaxPacketSize < AMaxPacketSize) || !MaxPacketSizeValid))
-  {
-    AMaxPacketSize = MaxPacketSize;
-    MaxPacketSizeValid = true;
-  }
-
   if ((FMaxPacketSize > 0) &&
       ((FMaxPacketSize < AMaxPacketSize) || !MaxPacketSizeValid))
   {

+ 2 - 2
source/core/SftpFileSystem.h

@@ -184,8 +184,8 @@ protected:
   char * __fastcall GetEOL() const;
   inline void __fastcall BusyStart();
   inline void __fastcall BusyEnd();
-  inline unsigned long __fastcall TransferBlockSize(unsigned long Overhead,
-    TFileOperationProgressType * OperationProgress, unsigned long MaxPacketSize = 0);
+  inline unsigned long __fastcall TransferBlockSize(
+    unsigned long Overhead, TFileOperationProgressType * OperationProgress);
   inline unsigned long __fastcall UploadBlockSize(const RawByteString & Handle,
     TFileOperationProgressType * OperationProgress);
   inline unsigned long __fastcall DownloadBlockSize(