From ae1cc29dc6b4cee9fd46eb98fd7e52166e3a066f Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 11 Mar 2022 20:39:12 -0800 Subject: [PATCH] Revert "Move connected_items from hash table to tree" This reverts commit 187aa1c171f4511160388527c963fa88db31c34b. --- eeschema/sch_item.h | 3 +-- eeschema/sch_sheet_path.h | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/eeschema/sch_item.h b/eeschema/sch_item.h index 67b67948c5..1879ed2d7b 100644 --- a/eeschema/sch_item.h +++ b/eeschema/sch_item.h @@ -26,7 +26,6 @@ #define SCH_ITEM_H #include -#include #include #include @@ -492,7 +491,7 @@ protected: // to store a initial pos of the item or mouse cursor /// Store pointers to other items that are connected to this one, per sheet. - std::map m_connected_items; + std::unordered_map m_connected_items; /// Store connectivity information, per sheet. std::unordered_map m_connection_map; diff --git a/eeschema/sch_sheet_path.h b/eeschema/sch_sheet_path.h index 945ebc418c..cc31805a7e 100644 --- a/eeschema/sch_sheet_path.h +++ b/eeschema/sch_sheet_path.h @@ -393,14 +393,6 @@ namespace std }; } -struct SHEET_PATH_CMP -{ - bool operator()( const SCH_SHEET_PATH& lhs, const SCH_SHEET_PATH& rhs ) const - { - return lhs.GetCurrentHash() < rhs.GetCurrentHash(); - } -}; - typedef std::vector< SCH_SHEET_PATH > SCH_SHEET_PATHS; typedef SCH_SHEET_PATHS::iterator SCH_SHEET_PATHS_ITER;