فهرست منبع

Inlining public method that is used only once internally

Source commit: cb8aa5f084fae8556abc2c84022f46fdd9c6b41b
Martin Prikryl 8 سال پیش
والد
کامیت
885738f953
2فایلهای تغییر یافته به همراه3 افزوده شده و 10 حذف شده
  1. 3 9
      source/core/Terminal.cpp
  2. 0 1
      source/core/Terminal.h

+ 3 - 9
source/core/Terminal.cpp

@@ -4335,14 +4335,6 @@ void __fastcall TTerminal::CalculateFilesChecksum(const UnicodeString & Alg,
   FFileSystem->CalculateFilesChecksum(Alg, FileList, Checksums, OnCalculatedChecksum);
 }
 //---------------------------------------------------------------------------
-void __fastcall TTerminal::RenameFile(const UnicodeString FileName,
-  const UnicodeString NewName)
-{
-  LogEvent(FORMAT(L"Renaming file \"%s\" to \"%s\".", (FileName, NewName)));
-  DoRenameFile(FileName, NewName, false);
-  ReactOnCommand(fsRenameFile);
-}
-//---------------------------------------------------------------------------
 void __fastcall TTerminal::RenameFile(const TRemoteFile * File,
   const UnicodeString NewName, bool CheckExistence)
 {
@@ -4384,7 +4376,9 @@ void __fastcall TTerminal::RenameFile(const TRemoteFile * File,
   if (Proceed)
   {
     FileModified(File, File->FileName);
-    RenameFile(File->FileName, NewName);
+    LogEvent(FORMAT(L"Renaming file \"%s\" to \"%s\".", (File->FileName, NewName)));
+    DoRenameFile(File->FileName, NewName, false);
+    ReactOnCommand(fsRenameFile);
   }
 }
 //---------------------------------------------------------------------------

+ 0 - 1
source/core/Terminal.h

@@ -475,7 +475,6 @@ public:
   void __fastcall TerminalError(Exception * E, UnicodeString Msg, UnicodeString HelpKeyword = L"");
   void __fastcall ReloadDirectory();
   void __fastcall RefreshDirectory();
-  void __fastcall RenameFile(const UnicodeString FileName, const UnicodeString NewName);
   void __fastcall RenameFile(const TRemoteFile * File, const UnicodeString NewName, bool CheckExistence);
   void __fastcall MoveFile(const UnicodeString FileName, const TRemoteFile * File,
     /*const TMoveFileParams*/ void * Param);