Symbols: remove dead code
This commit is contained in:
parent
da86593625
commit
ab1dccd6b3
|
@ -1390,34 +1390,6 @@ bool SCH_SYMBOL::AddSheetPathReferenceEntryIfMissing( const KIID_PATH& aSheetPat
|
|||
}
|
||||
|
||||
|
||||
bool SCH_SYMBOL::ReplaceInstanceSheetPath( const KIID_PATH& aOldSheetPath,
|
||||
const KIID_PATH& aNewSheetPath )
|
||||
{
|
||||
auto it = std::find_if( m_instanceReferences.begin(), m_instanceReferences.end(),
|
||||
[ aOldSheetPath ]( SCH_SYMBOL_INSTANCE& r )->bool
|
||||
{
|
||||
return aOldSheetPath == r.m_Path;
|
||||
}
|
||||
);
|
||||
|
||||
if( it != m_instanceReferences.end() )
|
||||
{
|
||||
wxLogTrace( traceSchSheetPaths,
|
||||
"Replacing sheet path %s\n with sheet path %s\n for symbol %s.",
|
||||
aOldSheetPath.AsString(), aNewSheetPath.AsString(), m_Uuid.AsString() );
|
||||
|
||||
it->m_Path = aNewSheetPath;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxLogTrace( traceSchSheetPaths,
|
||||
"Could not find sheet path %s\n to replace with sheet path %s\n for symbol %s.",
|
||||
aOldSheetPath.AsString(), aNewSheetPath.AsString(), m_Uuid.AsString() );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void SCH_SYMBOL::SetOrientation( int aOrientation )
|
||||
{
|
||||
TRANSFORM temp = TRANSFORM();
|
||||
|
|
|
@ -147,8 +147,6 @@ public:
|
|||
|
||||
void RemoveInstance( const SCH_SHEET_PATH& aInstancePath );
|
||||
|
||||
void RemoveAllInstances() { m_instanceReferences.clear(); }
|
||||
|
||||
void SortInstances( bool ( *aSortFunction )( const SCH_SYMBOL_INSTANCE& aLhs,
|
||||
const SCH_SYMBOL_INSTANCE& aRhs ) );
|
||||
|
||||
|
@ -356,16 +354,6 @@ public:
|
|||
*/
|
||||
bool AddSheetPathReferenceEntryIfMissing( const KIID_PATH& aSheetPath );
|
||||
|
||||
/**
|
||||
* Replace \a aOldSheetPath with \a aNewSheetPath in the instance list.
|
||||
*
|
||||
* @param aOldSheetPath is a #KIID_PATH object of an existing path in the instance list.
|
||||
* @param aNewSheetPath is a #KIID_PATH object of the path to replace the existing path.
|
||||
*
|
||||
* @return true if \a aOldSheetPath was found and replaced or false if \a aOldSheetPath was
|
||||
* not found in the instance list.
|
||||
*/
|
||||
bool ReplaceInstanceSheetPath( const KIID_PATH& aOldSheetPath, const KIID_PATH& aNewSheetPath );
|
||||
|
||||
const BOX2I GetBoundingBox() const override;
|
||||
|
||||
|
|
Loading…
Reference in New Issue