diff --git a/pcbnew/board_commit.cpp b/pcbnew/board_commit.cpp index dc4d7d479b..4def2e9729 100644 --- a/pcbnew/board_commit.cpp +++ b/pcbnew/board_commit.cpp @@ -586,12 +586,6 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags ) EDA_ITEM* BOARD_COMMIT::parentObject( EDA_ITEM* aItem ) const { - if( BOARD_ITEM* boardItem = dynamic_cast( aItem ) ) - { - if( FOOTPRINT* parentFP = boardItem->GetParentFootprint() ) - return parentFP; - } - return aItem; }