1
0
Эх сурвалжийг харах

Unused code

Source commit: 92f139605347f063d1c9f983c4ef6e1052ecd167
Martin Prikryl 2 жил өмнө
parent
commit
d8d0adfff6

+ 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(