[Mod] Removed unnecessary function (#12772)

* Removed unnecessary function

the "renamedDocumentObjet" function does nothing

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
mosfet80
2024-03-11 18:20:32 +01:00
committed by GitHub
parent 9df1472e43
commit e9ec2422e1
3 changed files with 1 additions and 27 deletions

View File

@@ -70,9 +70,7 @@ void SheetObserver::slotDeletedObject(const DocumentObject& Obj)
void SheetObserver::slotChangedObject(const DocumentObject& Obj, const Property& Prop)
{
if (&Prop == &Obj.Label) {
sheet->renamedDocumentObject(&Obj);
}
if (&Prop == &Obj.Label) {}
else {
const char* name = Obj.getPropertyName(&Prop);