more cleanup about removing useless include

This commit is contained in:
jean-pierre charras 2020-10-02 14:29:17 +02:00
parent 0052954046
commit 87a220b8e2
41 changed files with 10 additions and 81 deletions

View File

@ -24,17 +24,13 @@
/********************************/ /********************************/
#include <fctsys.h>
#include <gr_basic.h> #include <gr_basic.h>
#include <common.h>
#include <trigo.h> #include <trigo.h>
#include <macros.h>
#include <base_struct.h> #include <base_struct.h>
#include <base_screen.h> #include <base_screen.h>
#include <bezier_curves.h> #include <bezier_curves.h>
#include <math_for_graphics.h> #include <math_for_graphics.h>
#include <wx/graphics.h> #include <wx/graphics.h>
#include <wx/tokenzr.h>
#include <geometry/geometry_utils.h> #include <geometry/geometry_utils.h>
#include <math/util.h> // for KiROUND #include <math/util.h> // for KiROUND

View File

@ -29,16 +29,13 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <gr_basic.h> #include <gr_basic.h>
#include <common.h>
#include <plotter.h> #include <plotter.h>
#include <eda_text.h> // EDA_TEXT_HJUSTIFY_T and EDA_TEXT_VJUSTIFY_T #include <eda_text.h> // EDA_TEXT_HJUSTIFY_T and EDA_TEXT_VJUSTIFY_T
#include <trigo.h> #include <trigo.h>
#include <macros.h>
#include <base_screen.h> #include <base_screen.h>
#include <gr_text.h> #include <gr_text.h>
#include <math/util.h> // for KiROUND #include <math/util.h> // for KiROUND
#include <basic_gal.h> #include <basic_gal.h>

View File

@ -24,12 +24,10 @@
*/ */
#include <confirm.h> #include <confirm.h>
#include <fctsys.h>
#include <fp_lib_table.h> #include <fp_lib_table.h>
#include <html_messagebox.h> #include <html_messagebox.h>
#include <kiway.h> #include <kiway.h>
#include <lib_id.h> #include <lib_id.h>
#include <macros.h>
#include <cvpcb_mainframe.h> #include <cvpcb_mainframe.h>
#include <listboxes.h> #include <listboxes.h>

View File

@ -24,7 +24,7 @@
#include <wx/imaglist.h> #include <wx/imaglist.h>
#include <wx/wupdlock.h> #include <wx/wupdlock.h>
#include <fctsys.h>
#include <ws_draw_item.h> #include <ws_draw_item.h>
#include <ws_data_model.h> #include <ws_data_model.h>
#include <pl_editor_id.h> #include <pl_editor_id.h>

View File

@ -24,11 +24,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <common.h>
#include <confirm.h> #include <confirm.h>
#include <gestfich.h> #include <gestfich.h>
#include <macros.h>
#include <ws_draw_item.h> #include <ws_draw_item.h>
#include <ws_data_model.h> #include <ws_data_model.h>
#include <pl_editor_frame.h> #include <pl_editor_frame.h>

View File

@ -23,10 +23,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <pgm_base.h> #include <pgm_base.h>
//#include <base_units.h>
#include <msgpanel.h> #include <msgpanel.h>
#include <bitmaps.h> #include <bitmaps.h>
#include <dialogs/panel_pl_editor_color_settings.h> #include <dialogs/panel_pl_editor_color_settings.h>

View File

@ -29,8 +29,6 @@
#include <algorithm> #include <algorithm>
#include <climits> #include <climits>
#include <fctsys.h>
#include <common.h>
#include <eda_rect.h> #include <eda_rect.h>
#include <pl_editor_layout.h> #include <pl_editor_layout.h>

View File

@ -23,7 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <ws_data_model.h> #include <ws_data_model.h>
#include <pl_editor_frame.h> #include <pl_editor_frame.h>
#include <tool/tool_manager.h> #include <tool/tool_manager.h>

View File

@ -23,7 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <ws_draw_item.h> #include <ws_draw_item.h>
#include <ws_data_model.h> #include <ws_data_model.h>
#include <project.h> #include <project.h>

View File

@ -19,9 +19,6 @@
* with this program. If not, see <http://www.gnu.org/licenses/>. * with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <fctsys.h>
#include <common.h>
#include <macros.h>
#include <bitmaps.h> #include <bitmaps.h>
#include <tool/action_toolbar.h> #include <tool/action_toolbar.h>
#include <tools/pl_actions.h> #include <tools/pl_actions.h>

View File

@ -23,7 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <class_board.h> #include <class_board.h>
#include <class_board_item.h> #include <class_board_item.h>
#include <connectivity/connectivity_data.h> #include <connectivity/connectivity_data.h>

View File

@ -21,8 +21,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <common.h>
#include <class_dimension.h> #include <class_dimension.h>
#include <class_track.h> #include <class_track.h>
#include <layers_id_colors_and_visibility.h> #include <layers_id_colors_and_visibility.h>

View File

@ -22,11 +22,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <vector> #include <vector>
#include <bezier_curves.h> #include <bezier_curves.h>
#include <base_units.h> // for IU_PER_MM #include <base_units.h> // for IU_PER_MM
#include <gr_text.h>
#include <pcbnew.h> #include <pcbnew.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <trigo.h> #include <trigo.h>

View File

@ -25,7 +25,6 @@
/* build_BOM_from_board.cpp */ /* build_BOM_from_board.cpp */
#include <fctsys.h>
#include <confirm.h> #include <confirm.h>
#include <kicad_string.h> #include <kicad_string.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>

View File

@ -27,7 +27,6 @@
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <fctsys.h>
#include <pcb_base_frame.h> #include <pcb_base_frame.h>
#include <reporter.h> #include <reporter.h>
#include <ws_proxy_view_item.h> #include <ws_proxy_view_item.h>

View File

@ -23,7 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <pcbnew.h> #include <pcbnew.h>
#include <wx/debug.h> #include <wx/debug.h>

View File

@ -24,8 +24,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <gr_basic.h>
#include <bitmaps.h> #include <bitmaps.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <base_units.h> #include <base_units.h>

View File

@ -24,8 +24,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <gr_basic.h>
#include <bezier_curves.h> #include <bezier_curves.h>
#include <pcb_screen.h> #include <pcb_screen.h>
#include <bitmaps.h> #include <bitmaps.h>

View File

@ -24,7 +24,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <bitmaps.h> #include <bitmaps.h>
#include <math/util.h> // for KiROUND #include <math/util.h> // for KiROUND
#include <settings/color_settings.h> #include <settings/color_settings.h>

View File

@ -23,8 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <gr_basic.h>
#include <bitmaps.h> #include <bitmaps.h>
#include <base_units.h> #include <base_units.h>
#include <pcb_base_frame.h> #include <pcb_base_frame.h>
@ -78,7 +76,7 @@ MARKER_PCB* MARKER_PCB::Deserialize( const wxString& data )
(int) strtol( props[2].c_str(), nullptr, 10 ) ); (int) strtol( props[2].c_str(), nullptr, 10 ) );
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( props[0] ); std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( props[0] );
if( !drcItem ) if( !drcItem )
return nullptr; return nullptr;

View File

@ -24,8 +24,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <gr_basic.h>
#include <confirm.h> #include <confirm.h>
#include <refdes_utils.h> #include <refdes_utils.h>
#include <bitmaps.h> #include <bitmaps.h>

View File

@ -28,9 +28,6 @@
* D_PAD class implementation. * D_PAD class implementation.
*/ */
#include <fctsys.h>
#include <trigo.h>
#include <macros.h>
#include <msgpanel.h> #include <msgpanel.h>
#include <base_units.h> #include <base_units.h>
#include <bitmaps.h> #include <bitmaps.h>

View File

@ -29,8 +29,6 @@
* PCB_TARGET class definition - targets for photo plots, formerly called MIRE (from French 'mire optique') * PCB_TARGET class definition - targets for photo plots, formerly called MIRE (from French 'mire optique')
*/ */
#include <fctsys.h>
#include <gr_basic.h>
#include <bitmaps.h> #include <bitmaps.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <class_board.h> #include <class_board.h>

View File

@ -23,7 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <base_struct.h> #include <base_struct.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <base_units.h> #include <base_units.h>

View File

@ -23,7 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <base_units.h> #include <base_units.h>
#include <bitmaps.h> #include <bitmaps.h>
@ -457,10 +456,7 @@ wxString TEXTE_MODULE::GetShownText( int aDepth ) const
std::shared_ptr<SHAPE> TEXTE_MODULE::GetEffectiveShape( PCB_LAYER_ID aLayer ) const std::shared_ptr<SHAPE> TEXTE_MODULE::GetEffectiveShape( PCB_LAYER_ID aLayer ) const
{ {
const MODULE* module = static_cast<MODULE*>( GetParent() ); return GetEffectiveTextShape();
auto shape = GetEffectiveTextShape();
return shape;
} }

View File

@ -24,7 +24,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <pcb_base_frame.h> #include <pcb_base_frame.h>
#include <connectivity/connectivity_data.h> #include <connectivity/connectivity_data.h>
#include <class_board.h> #include <class_board.h>

View File

@ -24,7 +24,6 @@
*/ */
#include <bitmaps.h> #include <bitmaps.h>
#include <fctsys.h>
#include <geometry/geometry_utils.h> #include <geometry/geometry_utils.h>
#include <geometry/shape_null.h> #include <geometry/shape_null.h>
#include <advanced_config.h> #include <advanced_config.h>

View File

@ -22,7 +22,6 @@
*/ */
#include <fctsys.h>
#include <cleanup_item.h> #include <cleanup_item.h>
#include <pcb_base_frame.h> #include <pcb_base_frame.h>

View File

@ -36,10 +36,8 @@
#include <class_track.h> #include <class_track.h>
#include <collectors.h> #include <collectors.h>
#include <eda_dde.h> #include <eda_dde.h>
#include <fctsys.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <kiway_express.h> #include <kiway_express.h>
#include <macros.h>
#include <netlist_reader/pcb_netlist.h> #include <netlist_reader/pcb_netlist.h>
#include <netlist_reader/board_netlist_updater.h> #include <netlist_reader/board_netlist_updater.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
@ -236,8 +234,8 @@ void PCB_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline )
pcb->HighLightON(); pcb->HighLightON();
auto merge_area = auto merge_area =
[netcode, &bbox]( BOARD_CONNECTED_ITEM* aItem ) [netcode, &bbox]( BOARD_CONNECTED_ITEM* aItem )
{ {
if( aItem->GetNetCode() == netcode ) if( aItem->GetNetCode() == netcode )
{ {
@ -316,7 +314,7 @@ void PCB_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline )
screenSize.y = std::max( 10.0, screenSize.y ); screenSize.y = std::max( 10.0, screenSize.y );
double ratio = std::max( -1.0, fabs( bbSize.y / screenSize.y ) ); double ratio = std::max( -1.0, fabs( bbSize.y / screenSize.y ) );
// Original KiCad code for how much to scale the zoom // Original KiCad code for how much to scale the zoom
double kicadRatio = std::max( fabs( bbSize.x / screenSize.x ), double kicadRatio = std::max( fabs( bbSize.x / screenSize.x ),
fabs( bbSize.y / screenSize.y ) ); fabs( bbSize.y / screenSize.y ) );
// LUT to scale zoom ratio to provide reasonable schematic context. Must work // LUT to scale zoom ratio to provide reasonable schematic context. Must work

View File

@ -39,7 +39,6 @@
#include <dialogs/panel_modedit_defaults.h> #include <dialogs/panel_modedit_defaults.h>
#include <dialogs/panel_display_options.h> #include <dialogs/panel_display_options.h>
#include <dialogs/panel_edit_options.h> #include <dialogs/panel_edit_options.h>
#include <fctsys.h>
#include <footprint_edit_frame.h> #include <footprint_edit_frame.h>
#include <footprint_editor_settings.h> #include <footprint_editor_settings.h>
#include <footprint_info_impl.h> #include <footprint_info_impl.h>

View File

@ -23,8 +23,6 @@
#include <footprint_info_impl.h> #include <footprint_info_impl.h>
#include <class_module.h> #include <class_module.h>
#include <common.h>
#include <fctsys.h>
#include <footprint_info.h> #include <footprint_info.h>
#include <fp_lib_table.h> #include <fp_lib_table.h>
#include <html_messagebox.h> #include <html_messagebox.h>
@ -32,7 +30,6 @@
#include <kiface_ids.h> #include <kiface_ids.h>
#include <kiway.h> #include <kiway.h>
#include <lib_id.h> #include <lib_id.h>
#include <macros.h>
#include <pgm_base.h> #include <pgm_base.h>
#include <wildcards_and_files_ext.h> #include <wildcards_and_files_ext.h>
#include <widgets/progress_reporter.h> #include <widgets/progress_reporter.h>

View File

@ -22,7 +22,6 @@
*/ */
#include <wx/ffile.h> #include <wx/ffile.h>
#include <fctsys.h>
#include <pgm_base.h> #include <pgm_base.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <confirm.h> #include <confirm.h>
@ -30,7 +29,6 @@
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <dialog_helpers.h> #include <dialog_helpers.h>
#include <filter_reader.h> #include <filter_reader.h>
#include <macros.h>
#include <fp_lib_table.h> #include <fp_lib_table.h>
#include <validators.h> #include <validators.h>
#include <dialog_text_entry.h> #include <dialog_text_entry.h>

View File

@ -31,7 +31,6 @@
#include <confirm.h> #include <confirm.h>
#include <dialog_helpers.h> #include <dialog_helpers.h>
#include <eda_pattern_match.h> #include <eda_pattern_match.h>
#include <fctsys.h>
#include <footprint_info.h> #include <footprint_info.h>
#include <footprint_viewer_frame.h> #include <footprint_viewer_frame.h>
#include <fp_lib_table.h> #include <fp_lib_table.h>

View File

@ -24,13 +24,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <pcb_draw_panel_gal.h> #include <pcb_draw_panel_gal.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <3d_viewer/eda_3d_viewer.h> #include <3d_viewer/eda_3d_viewer.h>
#include <msgpanel.h> #include <msgpanel.h>
#include <macros.h>
#include <bitmaps.h> #include <bitmaps.h>
#include <grid_tricks.h> #include <grid_tricks.h>
#include <class_board.h> #include <class_board.h>

View File

@ -23,8 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <gr_basic.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <dialog_helpers.h> #include <dialog_helpers.h>

View File

@ -23,7 +23,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <reporter.h> #include <reporter.h>
#include <board_commit.h> #include <board_commit.h>
#include <cleanup_item.h> #include <cleanup_item.h>

View File

@ -20,7 +20,6 @@
* with this program. If not, see <http://www.gnu.org/licenses/>. * with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <fctsys.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <kiway.h> #include <kiway.h>
#include <pgm_base.h> #include <pgm_base.h>

View File

@ -24,7 +24,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <pcb_screen.h> #include <pcb_screen.h>
#include <layers_id_colors_and_visibility.h> #include <layers_id_colors_and_visibility.h>

View File

@ -24,7 +24,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <fctsys.h>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <panel_hotkeys_editor.h> #include <panel_hotkeys_editor.h>
#include <panel_edit_options.h> #include <panel_edit_options.h>

View File

@ -20,9 +20,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>. * with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <fctsys.h>
#include <tool/actions.h> #include <tool/actions.h>
#include <pcbnew.h>
#include <class_board.h> #include <class_board.h>
#include <footprint_edit_frame.h> #include <footprint_edit_frame.h>
#include <dialog_helpers.h> #include <dialog_helpers.h>

View File

@ -24,16 +24,15 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <memory>
#include <bitmaps.h> #include <bitmaps.h>
#include <class_board.h> #include <class_board.h>
#include <confirm.h> #include <confirm.h>
#include <dialog_helpers.h> #include <dialog_helpers.h>
#include <fctsys.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <memory>
#include <pcb_edit_frame.h> #include <pcb_edit_frame.h>
#include <pcb_layer_box_selector.h> #include <pcb_layer_box_selector.h>
#include <pcbnew.h>
#include <pcbnew_id.h> #include <pcbnew_id.h>
#include <pcbnew_settings.h> #include <pcbnew_settings.h>
#include <pgm_base.h> #include <pgm_base.h>