Browse Source

Unused code

Since WinSCP 3.4

Source commit: 6374d4bb808b1ffa8a0443656978e7f1e187001d
Martin Prikryl 6 years ago
parent
commit
dec8ba9291
1 changed files with 0 additions and 18 deletions
  1. 0 18
      source/forms/CustomScpExplorer.cpp

+ 0 - 18
source/forms/CustomScpExplorer.cpp

@@ -56,24 +56,6 @@
 #pragma resource "*.dfm"
 #endif
 //---------------------------------------------------------------------------
-#define SAVE_SELECTION(DIRVIEW) \
-  UnicodeString FocusFile = L""; \
-  UnicodeString LastFocusedFile = L""; \
-  if (DIRVIEW->ItemFocused) LastFocusedFile = DIRVIEW->ItemFocused->Caption; \
-  { TListItem * ClosestUnselected = DIRVIEW->ClosestUnselected(DIRVIEW->ItemFocused); \
-  if (ClosestUnselected) FocusFile = ClosestUnselected->Caption; }
-#define RESTORE_SELECTION(DIRVIEW) \
-  if (!LastFocusedFile.IsEmpty() && \
-      (!DIRVIEW->ItemFocused || (DIRVIEW->ItemFocused->Caption != LastFocusedFile))) \
-  { \
-    TListItem *ItemToSelect = DIRVIEW->FindFileItem(FocusFile); \
-    if (ItemToSelect) \
-    { \
-      DIRVIEW->ItemFocused = ItemToSelect; \
-      DIRVIEW->ItemFocused->MakeVisible(False); \
-    } \
-  }
-//---------------------------------------------------------------------------
 #define WM_COMPONENT_HIDE (WM_WINSCP_USER + 4)
 static const int SessionPanelCount = 4;
 //---------------------------------------------------------------------------