From 0faf3a8bf5502eb70595cd55806b5aef292f3037 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 1 Feb 2022 12:49:28 +0000 Subject: [PATCH] Get rid of FP_TEXTBOX::ViewBBox(). We want to inherit FP_SHAPE's. --- pcbnew/fp_textbox.cpp | 12 ------------ pcbnew/fp_textbox.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/pcbnew/fp_textbox.cpp b/pcbnew/fp_textbox.cpp index d65959354d..1363508755 100644 --- a/pcbnew/fp_textbox.cpp +++ b/pcbnew/fp_textbox.cpp @@ -237,18 +237,6 @@ EDA_ITEM* FP_TEXTBOX::Clone() const } -const BOX2I FP_TEXTBOX::ViewBBox() const -{ - EDA_ANGLE angle = GetDrawRotation(); - EDA_RECT text_area = GetTextBox(); - - if( !angle.IsZero() ) - text_area = text_area.GetBoundingBoxRotated( GetDrawPos(), angle ); - - return BOX2I( text_area.GetPosition(), text_area.GetSize() ); -} - - void FP_TEXTBOX::ViewGetLayers( int aLayers[], int& aCount ) const { if( IsVisible() ) diff --git a/pcbnew/fp_textbox.h b/pcbnew/fp_textbox.h index 7e6edf4bc9..8523c9eec8 100644 --- a/pcbnew/fp_textbox.h +++ b/pcbnew/fp_textbox.h @@ -126,8 +126,6 @@ public: virtual wxString GetShownText( int aDepth = 0 ) const override; - virtual const BOX2I ViewBBox() const override; - virtual void ViewGetLayers( int aLayers[], int& aCount ) const override; double ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const override;