Remove unused code into App
This commit is contained in:
@@ -3891,8 +3891,6 @@ DocumentObject * Document::addObject(const char* sType, const char* pObjectName,
|
||||
pcObject->pcNameInDocument = &(d->objectMap.find(ObjectName)->first);
|
||||
// insert in the vector
|
||||
d->objectArray.push_back(pcObject);
|
||||
// insert in the adjacence list and reference through the ConectionMap
|
||||
//_DepConMap[pcObject] = add_vertex(_DepList);
|
||||
|
||||
// If we are restoring, don't set the Label object now; it will be restored later. This is to avoid potential duplicate
|
||||
// label conflicts later.
|
||||
@@ -4134,27 +4132,6 @@ void Document::removeObject(const char* sName)
|
||||
|
||||
_checkTransaction(pos->second,nullptr,__LINE__);
|
||||
|
||||
#if 0
|
||||
if(!d->rollback && d->activeUndoTransaction && pos->second->hasChildElement()) {
|
||||
// Preserve link group sub object global visibilities. Normally those
|
||||
// claimed object should be hidden in global coordinate space. However,
|
||||
// when the group is deleted, the user will naturally try to show the
|
||||
// children, which may now in the global space. When the parent is
|
||||
// undeleted, having its children shown in both the local and global
|
||||
// coordinate space is very confusing. Hence, we preserve the visibility
|
||||
// here
|
||||
for(auto &sub : pos->second->getSubObjects()) {
|
||||
if(sub.empty())
|
||||
continue;
|
||||
if(sub[sub.size()-1]!='.')
|
||||
sub += '.';
|
||||
auto sobj = pos->second->getSubObject(sub.c_str());
|
||||
if(sobj && sobj->getDocument()==this && !sobj->Visibility.getValue())
|
||||
d->activeUndoTransaction->addObjectChange(sobj,&sobj->Visibility);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (d->activeObject == pos->second)
|
||||
d->activeObject = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user