diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-12 17:06:23 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-12 17:13:08 +0100 |
commit | e74f4646622a6f667228d52be1dde091bb0b2757 (patch) | |
tree | 13da917c8061fa49ce5e156e40b734cb7e5fe3ac | |
parent | 75fca38e665681f3ef4e87b41a1910e47ba6c90e (diff) | |
download | nextcloud-server-e74f4646622a6f667228d52be1dde091bb0b2757.tar.gz nextcloud-server-e74f4646622a6f667228d52be1dde091bb0b2757.zip |
Remove deprecated method getAll instead of breaking API on deprecated method
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-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 |