remove unnecessary method

the call to GetObjectItemSet() in
OleProperties::ForceDefaultAttributes() is unnecessary, because
it is always called before ForceDefaultAttributes is called, and
having removed that, the rest of the method becomes unnecessary too.

Change-Id: Ibb09020837d47cb9eb1fb8b5deca1defc1465108
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151237
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2023-05-02 12:15:50 +02:00
committed by Noel Grandin
parent 7a1f2f0b99
commit dbcf188d39
2 changed files with 0 additions and 13 deletions
-4
View File
@@ -42,10 +42,6 @@ namespace sdr::properties
// Clone() operator, normally just calls the local copy constructor
virtual std::unique_ptr<BaseProperties> Clone(SdrObject& rObj) const override;
// force default attributes for a specific object type, called from
// DefaultProperties::GetObjectItemSet() if a new ItemSet is created
virtual void ForceDefaultAttributes() override;
};
} // end of namespace sdr::properties
@@ -60,15 +60,6 @@ namespace sdr::properties
{
return std::unique_ptr<BaseProperties>(new OleProperties(*this, rObj));
}
void OleProperties::ForceDefaultAttributes()
{
// call parent
RectangleProperties::ForceDefaultAttributes();
// force ItemSet
GetObjectItemSet();
}
} // end of namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */