SpreadSheet: remove function

Observer is no longer required as PropertySheet is now derived from  PropertyLinkBase and will handle all the link related behavior
This commit is contained in:
Andrea
2025-05-18 17:32:17 +02:00
committed by Benjamin Nauck
parent f8b327fffc
commit 6cd828d986
3 changed files with 0 additions and 32 deletions

View File

@@ -1661,33 +1661,6 @@ void Sheet::onDocumentRestored()
}
}
/**
* @brief Create a document observer for this sheet. Used to track changes.
* @param document document to observer.
*/
void Sheet::observeDocument(Document* document)
{
// observer is no longer required as PropertySheet is now derived from
// PropertyLinkBase and will handle all the link related behavior
#if 1
(void)document;
#else
ObserverMap::const_iterator it = observers.find(document->getName());
if (it != observers.end()) {
// An observer already exists, increase reference counter for it
it->second->ref();
}
else {
// Create a new observer
SheetObserver* observer = new SheetObserver(document, &cells);
observers[document->getName()] = observer;
}
#endif
}
void Sheet::renameObjectIdentifiers(const std::map<ObjectIdentifier, ObjectIdentifier>& paths)
{
DocumentObject::renameObjectIdentifiers(paths);