vcl/headless/svpprn.cxx      |    5 -----
 vcl/inc/headless/svpinst.hxx |    1 -
 vcl/ios/dummies.cxx          |    5 -----
 3 files changed, 11 deletions(-)

New commits:
commit 2006ea0cd5689d87c7d067f99e3daaaa270aac52
Author:     Michael Weghorn <[email protected]>
AuthorDate: Mon Mar 2 02:43:45 2026 +0100
Commit:     Michael Weghorn <[email protected]>
CommitDate: Mon Mar 2 17:13:05 2026 +0100

    vcl: Drop SvpSalInstance::DestroyInfoPrinter
    
    It does exactly the same as the base class
    implementation in SalGenericInstance::DestroyInfoPrinter,
    so there is no need to override that one.
    
    Change-Id: I80b9755a466429d10d20ac638254b46e634ffd0e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200744
    Reviewed-by: Michael Weghorn <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/headless/svpprn.cxx b/vcl/headless/svpprn.cxx
index c7d0abff57cf..9e6ef6a1c4b9 100644
--- a/vcl/headless/svpprn.cxx
+++ b/vcl/headless/svpprn.cxx
@@ -176,11 +176,6 @@ SalInfoPrinter* SvpSalInstance::CreateInfoPrinter( 
SalPrinterQueueInfo* pQueueIn
     return pPrinter;
 }
 
-void SvpSalInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter )
-{
-    delete pPrinter;
-}
-
 std::unique_ptr<SalPrinter> SvpSalInstance::CreatePrinter( SalInfoPrinter* 
pInfoPrinter )
 {
     // create and initialize SalPrinter
diff --git a/vcl/inc/headless/svpinst.hxx b/vcl/inc/headless/svpinst.hxx
index 78d6a9eca97f..2578b1b5e280 100644
--- a/vcl/inc/headless/svpinst.hxx
+++ b/vcl/inc/headless/svpinst.hxx
@@ -152,7 +152,6 @@ public:
     // JobSetup
     SAL_DLLPRIVATE virtual SalInfoPrinter* CreateInfoPrinter( 
SalPrinterQueueInfo* pQueueInfo,
                                                ImplJobSetup* pSetupData ) 
override;
-    virtual void            DestroyInfoPrinter( SalInfoPrinter* pPrinter ) 
override;
     SAL_DLLPRIVATE virtual std::unique_ptr<SalPrinter> CreatePrinter( 
SalInfoPrinter* pInfoPrinter ) override;
 
     virtual void            GetPrinterQueueInfo( ImplPrnQueueList* pList ) 
override;
diff --git a/vcl/ios/dummies.cxx b/vcl/ios/dummies.cxx
index 68ddc6b1c81f..fbd8d049be0d 100644
--- a/vcl/ios/dummies.cxx
+++ b/vcl/ios/dummies.cxx
@@ -49,11 +49,6 @@ SalInfoPrinter* SvpSalInstance::CreateInfoPrinter( 
SalPrinterQueueInfo* /* pQueu
     return NULL;
 }
 
-void SvpSalInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter )
-{
-    delete pPrinter;
-}
-
 void SvpSalInstance::GetPrinterQueueInfo( ImplPrnQueueList* /* pList */ )
 {
 }

Reply via email to