diff options
-rw-r--r-- | lib/private/BackgroundJob/JobList.php | 11 | ||||
-rw-r--r-- | lib/public/BackgroundJob/IJobList.php | 10 |
2 files changed, 0 insertions, 21 deletions
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index 3886ff13bc6..494735ad873 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -158,17 +158,6 @@ class JobList implements IJobList { } /** - * get all jobs in the list - * - * @return iterable<IJob> - * @deprecated 9.0.0 - This method is dangerous since it can cause load and - * memory problems when creating too many instances. Use getJobs instead. - */ - public function getAll(): iterable { - return $this->getJobs(null, null, 0); - } - - /** * @param IJob|class-string<IJob>|null $job * @return iterable<IJob> Avoid to store these objects as they may share a Singleton instance. You should instead use these IJobs instances while looping on the iterable. */ diff --git a/lib/public/BackgroundJob/IJobList.php b/lib/public/BackgroundJob/IJobList.php index bd43f0771f6..0b32607feb6 100644 --- a/lib/public/BackgroundJob/IJobList.php +++ b/lib/public/BackgroundJob/IJobList.php @@ -76,16 +76,6 @@ interface IJobList { public function has($job, $argument): bool; /** - * get all jobs in the list - * - * @return iterable<IJob> - * @since 7.0.0 - * @deprecated 9.0.0 - This method is dangerous since it can cause load and - * memory problems when creating too many instances. Use getJobs instead. - */ - public function getAll(): iterable; - - /** * Get jobs matching the search * * @param IJob|class-string<IJob>|null $job |