Revert "Move connected_items from hash table to tree"
This reverts commit 187aa1c171.
This commit is contained in:
+1
-2
@@ -26,7 +26,6 @@
|
||||
#define SCH_ITEM_H
|
||||
|
||||
#include <unordered_map>
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
||||
#include <eda_item.h>
|
||||
@@ -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<SCH_SHEET_PATH, SCH_ITEM_SET, SHEET_PATH_CMP> m_connected_items;
|
||||
std::unordered_map<SCH_SHEET_PATH, SCH_ITEM_SET> m_connected_items;
|
||||
|
||||
/// Store connectivity information, per sheet.
|
||||
std::unordered_map<SCH_SHEET_PATH, SCH_CONNECTION*> m_connection_map;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user