More about code cleaning.
Remove useless includes and dead code
This commit is contained in:
parent
8d649b5351
commit
3543de039b
|
@ -27,7 +27,6 @@
|
|||
#include <cstdarg>
|
||||
|
||||
#include <layers_id_colors_and_visibility.h>
|
||||
#include <class_board.h>
|
||||
|
||||
|
||||
LSET::LSET( const PCB_LAYER_ID* aArray, unsigned aCount ) :
|
||||
|
|
|
@ -287,28 +287,6 @@ public:
|
|||
return wxT( "GERBER_DRAW_ITEM" );
|
||||
}
|
||||
|
||||
/**
|
||||
* Function UnLink
|
||||
* detaches this object from its owner.
|
||||
*/
|
||||
void UnLink()
|
||||
{
|
||||
DLIST<GERBER_DRAW_ITEM>* list = (DLIST<GERBER_DRAW_ITEM>*) GetList();
|
||||
wxASSERT( list );
|
||||
|
||||
if( list )
|
||||
list->Remove( this );
|
||||
}
|
||||
|
||||
/**
|
||||
* Function DeleteStructure
|
||||
* deletes this object after UnLink()ing it from its owner.
|
||||
*/
|
||||
void DeleteStructure()
|
||||
{
|
||||
UnLink();
|
||||
delete this;
|
||||
}
|
||||
#if defined(DEBUG)
|
||||
void Show( int nestLevel, std::ostream& os ) const override;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue