diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-08-26 14:26:26 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-08-27 07:30:22 +0200 |
commit | 6ff0fde4c31196312d0f6fc74db1d67117a0e486 (patch) | |
tree | 9ca708d2604b39c5a3117fcec86cc5a8a58d4836 /vcl/unx | |
parent | ee472dcaedccad37de0ff326d6c79bdd9bbc9e52 (diff) |
vcl: Drop always null PrinterUpdate::pPrinterUpdateIdle
After
Change-Id: I431171094d4981552f641af89940d877147ffa71
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Mon Aug 26 14:18:46 2024 +0200
vcl: Drop logically dead "PrinterUpdate::nActiveJobs > 0" code
, it's clear that `PrinterUpdate::pPrinterUpdateIdle`
is always nullptr, so drop it and
`PrinterUpdate::jobEnded`.
Change-Id: Ieb1e1fdabc98d8d612a0af2c68f1dcdfc17852cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172399
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/print/genprnpsp.cxx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/vcl/unx/generic/print/genprnpsp.cxx b/vcl/unx/generic/print/genprnpsp.cxx index c2beec916b56..ad006d60a869 100644 --- a/vcl/unx/generic/print/genprnpsp.cxx +++ b/vcl/unx/generic/print/genprnpsp.cxx @@ -1022,18 +1022,13 @@ namespace { class PrinterUpdate { - static Idle* pPrinterUpdateIdle; - static void doUpdate(); public: static void update(SalGenericInstance const &rInstance); - static void jobEnded(); }; } -Idle* PrinterUpdate::pPrinterUpdateIdle = nullptr; - void PrinterUpdate::doUpdate() { ::psp::PrinterInfoManager& rManager( ::psp::PrinterInfoManager::get() ); @@ -1062,20 +1057,8 @@ void SalGenericInstance::updatePrinterUpdate() PrinterUpdate::update(*this); } -void PrinterUpdate::jobEnded() -{ - if( pPrinterUpdateIdle ) - { - pPrinterUpdateIdle->Stop(); - delete pPrinterUpdateIdle; - pPrinterUpdateIdle = nullptr; - doUpdate(); - } -} - void SalGenericInstance::jobEndedPrinterUpdate() { - PrinterUpdate::jobEnded(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |