+ rename signal to signalRelabelObject and remove unused code

This commit is contained in:
wmayer
2015-09-22 17:13:03 +02:00
parent a8507628fa
commit b33be62bb6
12 changed files with 24 additions and 48 deletions

View File

@@ -923,17 +923,6 @@ void SelectionSingleton::slotDeletedObject(const App::DocumentObject& Obj)
Selection().rmvSelection( Obj.getDocument()->getName(), Obj.getNameInDocument() );
}
void SelectionSingleton::slotRenamedObject(const App::DocumentObject& Obj)
{
// compare internals with the document and change them if needed
App::Document* pDoc = Obj.getDocument();
for (std::list<_SelObj>::iterator it = _SelList.begin(); it != _SelList.end(); ++it) {
if (it->pDoc == pDoc) {
it->DocName = pDoc->getName();
}
}
}
//**************************************************************************
// Construction/Destruction
@@ -946,7 +935,6 @@ SelectionSingleton::SelectionSingleton()
{
ActiveGate = 0;
App::GetApplication().signalDeletedObject.connect(boost::bind(&Gui::SelectionSingleton::slotDeletedObject, this, _1));
App::GetApplication().signalRenamedObject.connect(boost::bind(&Gui::SelectionSingleton::slotRenamedObject, this, _1));
CurrentPreselection.pDocName = 0;
CurrentPreselection.pObjectName = 0;
CurrentPreselection.pSubName = 0;