浏览代码

Removing unused method

(cherry picked from commit 52cadf1fa8f359926b82f4fec48a190c0cc99ce7)

Source commit: f689d73652e1f5ca7339ebfa8e654cd94218fcc5
Martin Prikryl 5 年之前
父节点
当前提交
44c354bf39
共有 2 个文件被更改,包括 0 次插入10 次删除
  1. 0 9
      source/forms/Authenticate.cpp
  2. 0 1
      source/forms/Authenticate.h

+ 0 - 9
source/forms/Authenticate.cpp

@@ -45,8 +45,6 @@ void __fastcall TAuthenticateForm::Init(TTerminal * Terminal)
   FHorizontalLogPadding = ScaleByTextHeight(this, 4);
   FHorizontalLogPadding = ScaleByTextHeight(this, 4);
   FVerticalLogPadding = ScaleByTextHeight(this, 3);
   FVerticalLogPadding = ScaleByTextHeight(this, 3);
   FLogTextFormat << tfNoPrefix << tfWordBreak << tfVerticalCenter;
   FLogTextFormat << tfNoPrefix << tfWordBreak << tfVerticalCenter;
-
-  ClearLog();
 }
 }
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 __fastcall TAuthenticateForm::~TAuthenticateForm()
 __fastcall TAuthenticateForm::~TAuthenticateForm()
@@ -148,13 +146,6 @@ void __fastcall TAuthenticateForm::FormShow(TObject * /*Sender*/)
   FFrameAnimation.Start();
   FFrameAnimation.Start();
 }
 }
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
-void __fastcall TAuthenticateForm::ClearLog()
-{
-  // TListItems::Clear() does nothing without allocated handle
-  LogView->HandleNeeded();
-  LogView->Items->Clear();
-}
-//---------------------------------------------------------------------------
 void __fastcall TAuthenticateForm::Log(const UnicodeString Message)
 void __fastcall TAuthenticateForm::Log(const UnicodeString Message)
 {
 {
   // HACK
   // HACK

+ 0 - 1
source/forms/Authenticate.h

@@ -76,7 +76,6 @@ public:
   __property TNotifyEvent OnCancel = { read = FOnCancel, write = FOnCancel };
   __property TNotifyEvent OnCancel = { read = FOnCancel, write = FOnCancel };
 
 
 protected:
 protected:
-  void __fastcall ClearLog();
   void __fastcall AdjustControls();
   void __fastcall AdjustControls();
   bool __fastcall Execute(UnicodeString Status, TPanel * Panel,
   bool __fastcall Execute(UnicodeString Status, TPanel * Panel,
     TWinControl * FocusControl, TButton * DefaultButton, TButton * CancelButton,
     TWinControl * FocusControl, TButton * DefaultButton, TButton * CancelButton,