Remove dead code.
This commit is contained in:
parent
64fea38e61
commit
f23f75866f
|
@ -2,7 +2,7 @@
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2014-2021 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 2014-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -88,19 +88,6 @@ LAYER_BOX_SELECTOR::LAYER_BOX_SELECTOR( wxWindow* parent, wxWindowID id, const w
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LAYER_BOX_SELECTOR::LAYER_BOX_SELECTOR( wxWindow* parent, wxWindowID id, const wxPoint& pos,
|
|
||||||
const wxSize& size, const wxArrayString& choices ) :
|
|
||||||
wxBitmapComboBox( parent, id, wxEmptyString, pos, size, choices, wxCB_READONLY ),
|
|
||||||
LAYER_SELECTOR()
|
|
||||||
{
|
|
||||||
if( !choices.IsEmpty() )
|
|
||||||
ResyncBitmapOnly();
|
|
||||||
|
|
||||||
GetParent()->Connect( wxEVT_CHAR_HOOK, wxKeyEventHandler( LAYER_BOX_SELECTOR::onKeyDown ),
|
|
||||||
nullptr, this );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
LAYER_BOX_SELECTOR::~LAYER_BOX_SELECTOR()
|
LAYER_BOX_SELECTOR::~LAYER_BOX_SELECTOR()
|
||||||
{
|
{
|
||||||
GetParent()->Disconnect( wxEVT_CHAR_HOOK, wxKeyEventHandler( LAYER_BOX_SELECTOR::onKeyDown ),
|
GetParent()->Disconnect( wxEVT_CHAR_HOOK, wxKeyEventHandler( LAYER_BOX_SELECTOR::onKeyDown ),
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2011-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 1992-2021 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -39,9 +39,7 @@ class LAYER_SELECTOR
|
||||||
public:
|
public:
|
||||||
LAYER_SELECTOR();
|
LAYER_SELECTOR();
|
||||||
|
|
||||||
virtual ~LAYER_SELECTOR()
|
virtual ~LAYER_SELECTOR() { }
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SetLayersHotkeys( bool value );
|
bool SetLayersHotkeys( bool value );
|
||||||
|
|
||||||
|
@ -73,9 +71,6 @@ public:
|
||||||
const wxSize& size = wxDefaultSize, int n = 0,
|
const wxSize& size = wxDefaultSize, int n = 0,
|
||||||
const wxString choices[] = nullptr );
|
const wxString choices[] = nullptr );
|
||||||
|
|
||||||
LAYER_BOX_SELECTOR( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
|
|
||||||
const wxArrayString& choices );
|
|
||||||
|
|
||||||
~LAYER_BOX_SELECTOR() override;
|
~LAYER_BOX_SELECTOR() override;
|
||||||
|
|
||||||
int GetLayerSelection() const;
|
int GetLayerSelection() const;
|
||||||
|
|
Loading…
Reference in New Issue