From 3543de039be50d6d7d1b3b5a184bb1048b037e94 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 31 Dec 2019 13:08:50 +0100 Subject: [PATCH] More about code cleaning. Remove useless includes and dead code --- common/lset.cpp | 1 - gerbview/gerber_draw_item.h | 22 ---------------------- 2 files changed, 23 deletions(-) diff --git a/common/lset.cpp b/common/lset.cpp index 38c03bcf06..9317e07adc 100644 --- a/common/lset.cpp +++ b/common/lset.cpp @@ -27,7 +27,6 @@ #include #include -#include LSET::LSET( const PCB_LAYER_ID* aArray, unsigned aCount ) : diff --git a/gerbview/gerber_draw_item.h b/gerbview/gerber_draw_item.h index 7e471ea056..48648ee9ae 100644 --- a/gerbview/gerber_draw_item.h +++ b/gerbview/gerber_draw_item.h @@ -287,28 +287,6 @@ public: return wxT( "GERBER_DRAW_ITEM" ); } - /** - * Function UnLink - * detaches this object from its owner. - */ - void UnLink() - { - DLIST* list = (DLIST*) 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