Przeglądaj źródła

Removing unused argument

Source commit: 20372ac1c7c042d25d7c3f6a6c404481b6821f1f
Martin Prikryl 5 lat temu
rodzic
commit
4f7023ec10

+ 5 - 5
source/forms/CustomScpExplorer.cpp

@@ -4838,7 +4838,7 @@ void __fastcall TCustomScpExplorerForm::TrayIconClick(TObject * /*Sender*/)
   RestoreApp();
 }
 //---------------------------------------------------------------------------
-void __fastcall TCustomScpExplorerForm::NewSession(bool FromSite, const UnicodeString & SessionUrl)
+void __fastcall TCustomScpExplorerForm::NewSession(const UnicodeString & SessionUrl)
 {
   if (OpenInNewWindow())
   {
@@ -4847,7 +4847,7 @@ void __fastcall TCustomScpExplorerForm::NewSession(bool FromSite, const UnicodeS
   }
   else
   {
-    TTerminalManager::Instance()->NewSession(FromSite, SessionUrl);
+    TTerminalManager::Instance()->NewSession(SessionUrl);
   }
 }
 //---------------------------------------------------------------------------
@@ -6730,7 +6730,7 @@ void __fastcall TCustomScpExplorerForm::NeedSession(bool Startup)
       if (ShowLogin)
       {
         bool ReloadSessions = !Startup;
-        TTerminalManager::Instance()->NewSession(false, L"", ReloadSessions, this);
+        TTerminalManager::Instance()->NewSession(L"", ReloadSessions, this);
       }
     }
     __finally
@@ -6869,7 +6869,7 @@ bool __fastcall TCustomScpExplorerForm::SessionTabSwitched()
   {
     try
     {
-      NewSession(false);
+      NewSession();
     }
     __finally
     {
@@ -8485,7 +8485,7 @@ void __fastcall TCustomScpExplorerForm::PasteFromClipBoard()
     {
       if (StoredSessions->IsUrl(ClipboardText))
       {
-        NewSession(false, ClipboardText);
+        NewSession(ClipboardText);
       }
       else
       {

+ 1 - 1
source/forms/CustomScpExplorer.h

@@ -752,7 +752,7 @@ public:
   bool __fastcall HasActiveTerminal();
   virtual bool IsLocalBrowserMode();
 
-  void __fastcall NewSession(bool FromSite, const UnicodeString & SessionUrl = L"");
+  void __fastcall NewSession(const UnicodeString & SessionUrl = L"");
   void __fastcall DuplicateSession();
   void __fastcall RenameSession();
   void __fastcall CloseSession();

+ 2 - 2
source/forms/NonVisual.cpp

@@ -746,8 +746,8 @@ void __fastcall TNonVisualDataModule::ExplorerActionsExecute(
     #undef COLVIEWPROPS
 
     // SESSION
-    EXE(NewSessionAction, ScpExplorer->NewSession(false))
-    EXE(SiteManagerAction, ScpExplorer->NewSession(true))
+    EXE(NewSessionAction, ScpExplorer->NewSession())
+    EXE(SiteManagerAction, ScpExplorer->NewSession())
     EXE(DuplicateSessionAction, ScpExplorer->DuplicateSession())
     EXE(RenameSessionAction, ScpExplorer->RenameSession())
     EXE(CloseSessionAction2, ScpExplorer->CloseSession())

+ 1 - 1
source/windows/TerminalManager.cpp

@@ -1515,7 +1515,7 @@ void __fastcall TTerminalManager::OpenInPutty()
   }
 }
 //---------------------------------------------------------------------------
-void __fastcall TTerminalManager::NewSession(bool /*FromSite*/, const UnicodeString & SessionUrl, bool ReloadSessions, TForm * LinkedForm)
+void __fastcall TTerminalManager::NewSession(const UnicodeString & SessionUrl, bool ReloadSessions, TForm * LinkedForm)
 {
   if (ReloadSessions)
   {

+ 1 - 1
source/windows/TerminalManager.h

@@ -60,7 +60,7 @@ public:
   void __fastcall UpdateAppTitle();
   bool __fastcall CanOpenInPutty();
   void __fastcall OpenInPutty();
-  void __fastcall NewSession(bool FromSite, const UnicodeString & SessionUrl, bool ReloadSessions = true, TForm * LinkedForm = NULL);
+  void __fastcall NewSession(const UnicodeString & SessionUrl, bool ReloadSessions = true, TForm * LinkedForm = NULL);
   void __fastcall Idle(bool SkipCurrentTerminal);
   UnicodeString __fastcall GetTerminalShortPath(TTerminal * Terminal);
   UnicodeString __fastcall GetTerminalTitle(TTerminal * Terminal, bool Unique);