diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-18 11:13:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-18 16:23:44 +0100 |
commit | 5ec0eb98ce870b5da5ef1711b93b09edf36170bd (patch) | |
tree | 00a50431708de3a11667c32ef449ccd66e8f3372 /vcl | |
parent | d9af7ac4d697be1d520ea751eb7f8fc77a2ca03e (diff) |
Remove unused Manager::registerGraphic rsContext parameter
unused ever since the code was introduced in
a2b53fece14f745853bcfe1a300c3dceb580e148 "vcl: Add a internal (memory) manager
for Graphic objects"
Change-Id: I0e16983e7f34cded77435ae12d8adf0c3eee5f11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106048
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/graphic/Manager.hxx | 3 | ||||
-rw-r--r-- | vcl/source/graphic/Manager.cxx | 17 |
2 files changed, 9 insertions, 11 deletions
diff --git a/vcl/inc/graphic/Manager.hxx b/vcl/inc/graphic/Manager.hxx index 51b68d95c4c4..bff72780cbd7 100644 --- a/vcl/inc/graphic/Manager.hxx +++ b/vcl/inc/graphic/Manager.hxx @@ -40,8 +40,7 @@ private: Manager(); - void registerGraphic(const std::shared_ptr<ImpGraphic>& rImpGraphic, - std::u16string_view rsContext); + void registerGraphic(const std::shared_ptr<ImpGraphic>& rImpGraphic); DECL_LINK(SwapOutTimerHandler, Timer*, void); diff --git a/vcl/source/graphic/Manager.cxx b/vcl/source/graphic/Manager.cxx index 6bcd709480e8..88e1f6e622df 100644 --- a/vcl/source/graphic/Manager.cxx +++ b/vcl/source/graphic/Manager.cxx @@ -124,8 +124,7 @@ IMPL_LINK(Manager, SwapOutTimerHandler, Timer*, pTimer, void) pTimer->Start(); } -void Manager::registerGraphic(const std::shared_ptr<ImpGraphic>& pImpGraphic, - std::u16string_view /*rsContext*/) +void Manager::registerGraphic(const std::shared_ptr<ImpGraphic>& pImpGraphic) { std::scoped_lock<std::recursive_mutex> aGuard(maMutex); @@ -167,28 +166,28 @@ void Manager::unregisterGraphic(ImpGraphic* pImpGraphic) std::shared_ptr<ImpGraphic> Manager::copy(std::shared_ptr<ImpGraphic> const& rImpGraphicPtr) { auto pReturn = std::make_shared<ImpGraphic>(*rImpGraphicPtr); - registerGraphic(pReturn, u"Copy"); + registerGraphic(pReturn); return pReturn; } std::shared_ptr<ImpGraphic> Manager::newInstance() { auto pReturn = std::make_shared<ImpGraphic>(); - registerGraphic(pReturn, u"Empty"); + registerGraphic(pReturn); return pReturn; } std::shared_ptr<ImpGraphic> Manager::newInstance(const BitmapEx& rBitmapEx) { auto pReturn = std::make_shared<ImpGraphic>(rBitmapEx); - registerGraphic(pReturn, u"BitmapEx"); + registerGraphic(pReturn); return pReturn; } std::shared_ptr<ImpGraphic> Manager::newInstance(const Animation& rAnimation) { auto pReturn = std::make_shared<ImpGraphic>(rAnimation); - registerGraphic(pReturn, u"Animation"); + registerGraphic(pReturn); return pReturn; } @@ -196,21 +195,21 @@ std::shared_ptr<ImpGraphic> Manager::newInstance(const std::shared_ptr<VectorGraphicData>& rVectorGraphicDataPtr) { auto pReturn = std::make_shared<ImpGraphic>(rVectorGraphicDataPtr); - registerGraphic(pReturn, u"VectorGraphic"); + registerGraphic(pReturn); return pReturn; } std::shared_ptr<ImpGraphic> Manager::newInstance(const GDIMetaFile& rMetaFile) { auto pReturn = std::make_shared<ImpGraphic>(rMetaFile); - registerGraphic(pReturn, u"Metafile"); + registerGraphic(pReturn); return pReturn; } std::shared_ptr<ImpGraphic> Manager::newInstance(const GraphicExternalLink& rGraphicLink) { auto pReturn = std::make_shared<ImpGraphic>(rGraphicLink); - registerGraphic(pReturn, u"GraphicExternalLink"); + registerGraphic(pReturn); return pReturn; } |