diff --git a/eeschema/sch_reference_list.cpp b/eeschema/sch_reference_list.cpp index 13496cd126..584bdbff5b 100644 --- a/eeschema/sch_reference_list.cpp +++ b/eeschema/sch_reference_list.cpp @@ -155,26 +155,6 @@ bool SCH_REFERENCE_LIST::sortByTimeStamp( const SCH_REFERENCE& item1, } -int SCH_REFERENCE_LIST::FindUnit( size_t aIndex, int aUnit, bool aIncludeNew ) const -{ - int NumRef = m_flatList[aIndex].m_numRef; - - for( size_t ii = 0; ii < m_flatList.size(); ii++ ) - { - if( ( aIndex == ii ) - || ( m_flatList[ii].m_isNew && !aIncludeNew ) - || ( m_flatList[ii].m_numRef != NumRef ) - || ( m_flatList[aIndex].CompareRef( m_flatList[ii] ) != 0 ) ) - continue; - - if( m_flatList[ii].m_unit == aUnit ) - return (int) ii; - } - - return -1; -} - - int SCH_REFERENCE_LIST::FindRefByFullPath( const wxString& aFullPath ) const { for( size_t i = 0; i < m_flatList.size(); ++i ) diff --git a/eeschema/sch_reference_list.h b/eeschema/sch_reference_list.h index ff4cea1136..141b1d99fd 100644 --- a/eeschema/sch_reference_list.h +++ b/eeschema/sch_reference_list.h @@ -520,17 +520,6 @@ public: */ int FindRef( const wxString& aPath ) const; - /** - * Search the sorted list of symbols for a another symbol with the same reference and a - * given part unit. Use this method to manage symbols with multiple parts per package. - * - * @param aIndex is the index in aSymbolsList for of given #SCH_REFERENCE item to test. - * @param aUnit is the given unit number to search. - * @param aIncludeNew true to include references with the "new" flag in the search. - * @return index in aSymbolsList if found or -1 if not found. - */ - int FindUnit( size_t aIndex, int aUnit, bool aIncludeNew = false ) const; - /** * Search the list for a symbol with the given KIID path (as string). *