From 93609837dd03298b01905474e834f87e57551804 Mon Sep 17 00:00:00 2001 From: Lorenzo Marcantonio Date: Mon, 1 Apr 2013 13:59:19 +0200 Subject: [PATCH] Removed unused width attribute from schematic line --- eeschema/sch_line.cpp | 10 ++-------- eeschema/sch_line.h | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/eeschema/sch_line.cpp b/eeschema/sch_line.cpp index 7977e87770..d1a36da083 100644 --- a/eeschema/sch_line.cpp +++ b/eeschema/sch_line.cpp @@ -49,7 +49,6 @@ SCH_LINE::SCH_LINE( const wxPoint& pos, int layer ) : { m_start = pos; m_end = pos; - m_width = 0; // Default thickness used m_startIsDangling = m_endIsDangling = false; switch( layer ) @@ -74,7 +73,6 @@ SCH_LINE::SCH_LINE( const SCH_LINE& aLine ) : { m_start = aLine.m_start; m_end = aLine.m_end; - m_width = aLine.m_width; m_startIsDangling = m_endIsDangling = false; } @@ -107,7 +105,6 @@ void SCH_LINE::Show( int nestLevel, std::ostream& os ) const { NestedSpace( nestLevel, os ) << '<' << GetClass().Lower().mb_str() << " layer=\"" << m_Layer << '"' - << " width=\"" << m_width << '"' << " startIsDangling=\"" << m_startIsDangling << '"' << " endIsDangling=\"" << m_endIsDangling << '"' << ">" @@ -210,14 +207,11 @@ bool SCH_LINE::Load( LINE_READER& aLine, wxString& aErrorMsg ) int SCH_LINE::GetPenSize() const { - int pensize = ( m_width == 0 ) ? GetDefaultLineThickness() : m_width; if( m_Layer == LAYER_BUS ) - { - pensize = ( m_width == 0 ) ? GetDefaultBusThickness() : m_width; - } + return GetDefaultBusThickness(); - return pensize; + return GetDefaultLineThickness(); } diff --git a/eeschema/sch_line.h b/eeschema/sch_line.h index bb5c7876dc..a76173b66d 100644 --- a/eeschema/sch_line.h +++ b/eeschema/sch_line.h @@ -42,7 +42,6 @@ class SCH_LINE : public SCH_ITEM { bool m_startIsDangling; ///< True if start point is not connected. bool m_endIsDangling; ///< True if end point is not connected. - int m_width; ///< Set to 0 for wires and greater than 0 for busses. wxPoint m_start; ///< Line start point wxPoint m_end; ///< Line end point