From 70c2380fc26b4bdc7de2ce0279a1127d3f6bfcea Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 24 Jan 2019 18:23:57 +0100 Subject: [PATCH] Minor fixes in code: remove dead code. --- eeschema/lib_field.h | 6 ++---- pcbnew/import_gfx/dxf_import_plugin.cpp | 5 ++--- pcbnew/import_gfx/dxf_import_plugin.h | 9 +++++---- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/eeschema/lib_field.h b/eeschema/lib_field.h index 077cedb829..4c097b5228 100644 --- a/eeschema/lib_field.h +++ b/eeschema/lib_field.h @@ -1,8 +1,8 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2004 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com - * Copyright (C) 2004-2017 KiCad Developers, see change_log.txt for contributors. + * Copyright (C) 2019 Jean-Pierre Charras, jp.charras at wanadoo.fr + * Copyright (C) 2004-2019 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -150,8 +150,6 @@ public: */ void Copy( LIB_FIELD* aTarget ) const; - void SetFields( const std::vector aFields ); - /** * @return true if the field value is void (no text in this field) */ diff --git a/pcbnew/import_gfx/dxf_import_plugin.cpp b/pcbnew/import_gfx/dxf_import_plugin.cpp index dd75e25e9e..d1c8b2b24c 100644 --- a/pcbnew/import_gfx/dxf_import_plugin.cpp +++ b/pcbnew/import_gfx/dxf_import_plugin.cpp @@ -1,8 +1,8 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2018 Jean-Pierre Charras, jp.charras at wanadoo.fr - * Copyright (C) 2018 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2019 Jean-Pierre Charras, jp.charras at wanadoo.fr + * Copyright (C) 2019 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -134,7 +134,6 @@ double DXF_IMPORT_PLUGIN::mapWidth( double aDxfWidth ) bool DXF_IMPORT_PLUGIN::ImportDxfFile( const wxString& aFile ) { DL_Dxf dxf_reader; - std::string filename = TO_UTF8( aFile ); // wxFopen takes care of unicode filenames across platforms FILE* fp = wxFopen( aFile, "rt" ); diff --git a/pcbnew/import_gfx/dxf_import_plugin.h b/pcbnew/import_gfx/dxf_import_plugin.h index 83ffe1484e..05be1a071d 100644 --- a/pcbnew/import_gfx/dxf_import_plugin.h +++ b/pcbnew/import_gfx/dxf_import_plugin.h @@ -1,8 +1,8 @@ /**************************************************************************** * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2018 Jean-Pierre Charras, jp.charras at wanadoo.fr - * Copyright (C) 1992-2018 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2019 Jean-Pierre Charras, jp.charras at wanadoo.fr + * Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -64,8 +64,8 @@ public: // 2 = entity in progress int m_EntityFlag; // a info flag to parse entities - VECTOR2D m_LastCoordinate; // the last vertex coordinate read (unit = mm) - VECTOR2D m_PolylineStart; // The first point of the polyline entity, when reading a polyline (unit = mm) + VECTOR2D m_LastCoordinate; // the last vertex coordinate read (unit = mm) + VECTOR2D m_PolylineStart; // The first point of the polyline entity, when reading a polyline (unit = mm) double m_BulgeVertex; // the last vertex bulge value read // for spline parsing: parameters @@ -101,6 +101,7 @@ public: m_SplineTangentStartY = 0.0; m_SplineTangentEndX = 0.0; m_SplineTangentEndY = 0.0; + m_BulgeVertex = 0.0; m_SplineKnotsList.clear(); m_SplineControlPointList.clear(); m_SplineFitPointList.clear();